-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Auto-complete is not screenreader accessible #20099
Comments
I took a swing at this today but couldn't manage to get it working. I tried using aria-owns but didn't have any luck with it. There might be better options or I may have been using it incorrectly. There are probably more significant changes that need to be made though, I noticed the auto complete options aren't read out even when you focus them with the keyboard. Someone with more accessibility experience than myself will probably have better luck. Note that this problem exists for KQL and lucene, it's just more obvious with KQL since lucene only uses the typeahead to display recent searches. |
@aphelionz do you have any inputs? cc @timroes / @rayafratkina / @AlonaNadler Thanks! |
For auto completion using You can have a look at the timelion autocompletion which should be accessible: https://github.com/elastic/kibana/blob/master/src/core_plugins/timelion/public/directives/timelion_expression_input.html#L29 The general working:
If you come into troubles implementing or testing, please feel free to ping me, we can also setup some pair programming to solve that. |
Thanks Tim, I'll give this another shot with your advice |
Thanks Tim for the help, you're a boss. I did exactly what you said and it worked first try. Here's the PR #20740 |
Fixes #20099 I made the changes described by Tim at #20099 and everything seems to be working. I tried to update the typeahead in such a way that it can be made accessible anywhere it is used, even if there are multiple typeahead instances on a single page. > (optional) an aria-label on the individual suggestions that should be read out to screen reader. By default the content will be used, and that should be fine (unless you figure out there is too much "noise" elements in it. I did not do this bit since the text that is read seems reasonable to me, but I'm open to changing it if others feel differently.
Fixes elastic#20099 I made the changes described by Tim at elastic#20099 and everything seems to be working. I tried to update the typeahead in such a way that it can be made accessible anywhere it is used, even if there are multiple typeahead instances on a single page. > (optional) an aria-label on the individual suggestions that should be read out to screen reader. By default the content will be used, and that should be fine (unless you figure out there is too much "noise" elements in it. I did not do this bit since the text that is read seems reasonable to me, but I'm open to changing it if others feel differently.
Fixes #20099 I made the changes described by Tim at #20099 and everything seems to be working. I tried to update the typeahead in such a way that it can be made accessible anywhere it is used, even if there are multiple typeahead instances on a single page. > (optional) an aria-label on the individual suggestions that should be read out to screen reader. By default the content will be used, and that should be fine (unless you figure out there is too much "noise" elements in it. I did not do this bit since the text that is read seems reasonable to me, but I'm open to changing it if others feel differently.
Kibana version: 6.3.0
**Browser version:**chrome latest
Browser OS version: os x
Original install method (e.g. download page, yum, from source, etc.): from downloads
Describe the bug: With KQL switched on - if you start typing your search query term in search bar - screenreader announces what you are typing but there is no indication that user can select query terms with auto-complete.
Steps to reproduce:
Screenshots (if relevant):
The text was updated successfully, but these errors were encountered: