Open joelanman opened 3 years ago
@alextea has written a guide here: https://gist.github.com/alextea/2ec78934472fdb3b1433b342c2ef18d3
would make a good plugin
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…
Need to review the XGOV.UK plugin investigation #1948 before working on this as they may have found a good solution already
The initial work should be to convert this into a plugin. Content to describe using the plugin will then follow
(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