-
Notifications
You must be signed in to change notification settings - Fork 82
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
Accessibility Issues #169
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@sanusart I'm currently adding screen reader accessibility to our web site and noticed I'm having this issue with Mac VoiceOver as well. When group items are visually hovered, the screen reader is not announcing them. The issue can be reproduced on the demo page https://sanusart.github.io/react-dropdown-select/ Does anyone know how we can fix or work around this? I thought maybe I could listen for onHighlight events, read the title of the highlighted item, and set it as the I tried manually setting aria-activedescendent to true through Dev Tools, but that isn't resulting in the item being read for me. Maybe that's not a valid test though. |
@sanusart hmm sorry, this might just be user error. I was of the impression elements on the page should only be navigated to with the Tab key, but I realized with Mac VoiceOver I can navigate into the dropdown menu by pressing ctrl + opt + left/right arrows. It still seems like Tab would make more sense here since it is a menu of buttons...but maybe using ctrl + opt + left/right is a common UX for screen reader users? |
@sanusart @dbollinger I made some changes intended to improve screen reader accessibility (at least for Mac VoiceOver). These changes do not seem like a proper fix however, and I haven't tested it thoroughly across different screen readers. According to my research, it seems like using custom keyboard events are supposed to be avoided entirely to ensure proper custom dropdown accessibility...but that would require drastic re-writing, so I'm trying to at least partially improve screen reader handling (in my very limited testing). I've also added a dropdownAriaDescription prop, since I think the user should be informed about the non-standard accessibility behavior of the dropdown. I published these changes to npm as @podverse/react-dropdown-select in case someone else wants to use them. Any feedback would be appreciated. Thanks! |
@mitchdowney thank you for investigation and PR draft. Will try to get to it asap. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am testing the demo and docs pages with VoiceOver and macOS Big Sur, and finding some issues with keyboard controls and screen reader support.
esc
key does not close the popup menuI highly recommend adding an accessibility section to this library's README highlighting these issues and encouraging folks to help address them. Additional guidance about best practices for combobox style controls can be found on w3: https://www.w3.org/TR/wai-aria-practices-1.1/examples/combobox/aria1.1pattern/listbox-combo.html.
The text was updated successfully, but these errors were encountered: