alphagov / govuk-prototype-kit

Rapidly create HTML prototypes of GOV.UK services
https://prototype-kit.service.gov.uk
MIT License
306 stars 236 forks source link

It's hard to use the Accessible Autocomplete in the Prototype Kit #974

Open joelanman opened 3 years ago

joelanman commented 3 years ago

(from support)

The Accessible Autocomplete is not built into GOV.UK Frontend or the Prototype Kit, and has no macro, so it can't be used out of the box the way other components can.

The installation instructions are quite complicated for Prototype Kit users, and don't cover all the steps needed. In support, I have recommended the 'plain javascript module' approach:

https://github.com/alphagov/accessible-autocomplete#as-a-plain-javascript-module

joelanman commented 3 years ago

@alextea has written a guide here: https://gist.github.com/alextea/2ec78934472fdb3b1433b342c2ef18d3

joelanman commented 1 year ago

would make a good plugin

paulrobertlloyd commented 1 year ago

GOV.UK Prototype Components includes the accessible autocomplete, designed in way that it can be configured declaratively via component params.

GOV.UK Prototype Components is itself a plugin, which includes 6 other Nunjucks components, and 2 JavaScript helpers.

So it is possible, today, to install a plugin and get an easier to use autocomplete. However, maybe this functionality should live within the accessible-autocomplete package itself? Might be time to submit a PR…

ruthhammond commented 1 year ago

Need to review the XGOV.UK plugin investigation #1948 before working on this as they may have found a good solution already

ruthhammond commented 1 year ago

The initial work should be to convert this into a plugin. Content to describe using the plugin will then follow