Repository navigation
feat(a11y): Add support for screen readers - #148
Conversation
|
Massive thanks to @maxiloc for the help on this piece of work! |
| .css(this.css.suggestions) | ||
| .attr({ | ||
| role: 'group', | ||
| 'aria-label': this.name |
There was a problem hiding this comment.
In DocSearch this value ends up being 1 and attached to "ds-suggestions". I might have to remove this.
|
Thanks @kaelig for working on that. This is great. |
|
Awesome, I would be very interested by the same kind of feedback on our other libraries, like https://community.algolia.com/instantsearch.js/react/. Or maybe there are some very good online resources that we could follow? |
|
@maxiloc as per our discussion - here's an overview of the testing process: https://github.com/kaelig/autocomplete.js/blob/fd4d536a53165607a65a296613c7bd05d881527f/README.md#testing-accessibility |
I'm not sure I'll have time to cover other libraries but I'm hoping this PR will show the path and you'll be able to use it as an example to adapt other pieces of code!
Unfortunately it's kind of a detective work with a lot of testing. If like me you've been dealing with IE bugs in the early days of web development, this is kind of the same thing with screen readers. |
|
Using Apple Voice Over on macos sierra:
|
…afari / VoiceOver
|
I couldn't get the Chrome/VO combo to work properly, unfortunately. It might be my code but I suspect that they simply don't function as expected. Safari / cursor not in sync: it's tricky… but couldn't get it to work in sync, and it even happens with Apple's very own example: https://webkit.org/blog-files/aria1.0/combobox_with_live_region_status.html |
Accessibility - fixes #78
Demo: http://autocompletejs-a11y.surge.sh/test/playground.html
Other
To discuss