-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix: use correct aria roles for menu #283
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 95bc70e:
|
Hey, sorry for the late reply but thanks for submitting a PR! Unfortunately, I don't really intend to merge any changes for accessibility unless the react-select team updates the base package. I'm very much in favor of using more valid aria roles for the combobox widget, however react-select has it's own implementation for screen reader accessibility. Specifically, they have an If you want to see what I mean, you should try out whatever screenreader your system provides, or you can download for it, with this package before and after this change to see if there is any difference. For MacOS you can use VoiceOver and on Windows you can use JAWS or NVDA. There is a lot of discourse over on the That includes adding dynamic IDs to each of the options which can be used in
The PR has also gotten some attention from at least one of the maintainers of React Select, which hopefully means it will me merged soon! If it does, I will most definitely update this package to ensure everything works properly and I'm not overriding their new built in |
okay sounds good thanks |
Actually, I've gone back on my prior decision haha. The I decided I'd make this change anyway, so I figured I'd at least give you the credit by merging this first haha. |
ARIA: listbox role documentation says: