-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply accessibility attributes to suggestion template #185
Apply accessibility attributes to suggestion template #185
Conversation
👍 Thanks @dfrencham @colinrotherham, Any chance you'd have time to review this? |
Hi @jlbooker, @dfrencham, Sorry it's been a while since I contributed to this project. The change looks pretty good, but Without tests, there's nothing to stop this change (accidentally) being broken in future. |
Hi @colinrotherham, No problem I'll add tests later today. |
I must also add my attention's been elsewhere, the UK Government Digital Service accessible-autocomplete component has recently been tested by the Digital Accessibility Centre. Testing has been carried out with JAWS, Dragon NaturallySpeaking, Zoomtext, VoiceOver, NVDA. Blog posts here: Initial launch Follow up this week Some great tips in there for this repo too. Keep up the good work. //cc @edwardhorsford |
@colinrotherham I've added a couple of unit tests. I've seen your gov.uk autocomplete - I've actually emailed the link to my co-workers a few months ago as a potential replacement auto complete component. Excellent work! 👍 We currently use the (old) twitter-autocomplete in our production environment. We have a lot of event handlers adding various aria roles and attributes to allow JAWS/NVDA compatibility. Switching to this fork of that component solves some async issues around JAWS/IE, and lets me remove all the custom event handlers (as you are adding all the accessible markup). For reference, we are using this component on some Australia government applications with user counts in the millions. |
Thanks @dfrencham that's great. Always good to hear. @jlbooker I'm not set up with Grunt anymore, but I'm happy if you say everything passes 👍 |
Any updates on this? Thanks |
Hi @dfrencham, I don't have permission to approve this merge without @jlbooker sorry. Can you |
I already have it deployed on our sites 👍 When it is merged, then I'll move our sites to use the main version. I'll just have to be patient and wait for @jlbooker to have some availability. Cheers. |
Thanks! @dfrencham, and appreciate your patience. Sorry for the long delay! |
@jlbooker Better late than never! Cheers mate. |
When the suggestion template is customised, the accessibility related attributes are no longer applied.
This results in screen readers not reading the selected element. This behaviour has been observed in JAWS 18 running under Internet Explorer 11.
The Aria-activedescendant attribute is used to link the input text field to the current selection. I have updated dataset.js to apply the id (generated by guid()) in the event a user customises the template.
Example of user generated template: