-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Autocomplete] a11y issues: popup/clear buttons not keyboard accessible #30815
Comments
The autocomplete follows the WAI ARIA guildes, it indicates that:
Source: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/ There are keys that enable these actions, like Backspace, Down Arrow, etc.
It is shown only on hover/focus, it is intended. And it should not be focusable, so this should be fine. Could you maybe share some aria docs that supports the requirements you asked for. I must have missed something. |
Thank you for the link. Damn, I'm sorry to have wasted your time on this one. I got feedback from a customer (rather than our auditors) and I just assumed they knew what they were talking about. Will definitely look at the doc first. |
@mnajdova Ah interesting, I didn't know the WAI ARIA had this content. I fixed the terminology though, the ARIA Authoring Practices Guide is not a spec, we can do things differently.
https://www.w3.org/WAI/ARIA/apg/ I saw this question in the past too, I can't find this thread again, but I can share my thoughts here on why I designed it this way in the past:
|
Current behavior 😯
from demo example: https://mui.com/components/autocomplete/#combo-box
Expected behavior 🤔
from demo example: https://mui.com/components/autocomplete/#combo-box
If a component (clear and popup indicators) are accessible by mouse, then they should also be accessible by keyboard.
Another thing, sometimes the X button disappears from the tab order. Rather than removing it, maybe you should just make it invisible until focused?
Context 🔦
I noticed this code in useAutocomplete.js which is hardcoding these two iconbuttons to have tab-index= -1:
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: