Align with current latest alphagov/accessible-autocomplete repo #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When running
npm i
ornpm ci
I encounter the following error:npm ERR! code 1
…The error seems to be originating from the @wdio/sync dev dependency — a package no longer used in https://github.com/alphagov/accessible-autocomplete, from which this repo was forked a few years ago.
This PR does the following:
This means that we retain an installable/usable fork of accessible-autocomplete to which we can continue to add modifications (such as this: #29).
Long-term solution
Having a forked repo is not ideal, and the reason for doing so is documented in
https://github.com/Financial-Times/origami/blob/b632ca6643e93a720ed766bdce4e8eb0747a1b7b/components/o-autocomplete/src/js/autocomplete.js#L1-L8
I inspected those PRs to see if they had been merged (or that the bugs they sought to fix had been fixed elsewhere):
alphagov/accessible-autocomplete#497
null
instead ofundefined
but seems the net effect is the samealphagov/accessible-autocomplete#491
alphagov/accessible-autocomplete#496
Financial-Times/accessible-autocomplete #6
In addition, this fork now also contains these changes: #6. The external contributor who added them also tried to add them to the source repo here alphagov/accessible-autocomplete#500 but that PR was closed because:
To put us closer to being able to close this fork in favour of using the source repo, I've removed the changes in #6 in favour of those in alphagov/accessible-autocomplete#591.
The release for these changes can be a major version, making clear that this feature has been removed and that any usage of the
ariaLabelledBy
option will need to switch to applying anaria-labelledby
property to theul
element via themenuAttributes
option.Release
Given this PR includes breaking changes, I propose releasing this as a major version.