-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
CustomSelectControl: set aria-hidden to empty option list #21298
Conversation
Size Change: +4 B (0%) Total Size: 835 kB
ℹ️ View Unchanged
|
@Aljullu Thanks for working on this! I just tested it locally. Unfortunately, I did find an interaction issue :(. After selecting an item (keyboard or mouse), the focus doesn't return back to the Let me know if you're experiencing the same issue Thanks! |
Oh, right, I completely missed that. Another approach I had in mind was to use |
31a8712
to
7fdff59
Compare
7fdff59
to
9281c52
Compare
I rebased this branch to fix the conflicts that have recently appeared. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks @Aljullu! :)
Description
CustomSelectControl
renders the listbox containing the options even when the control is not open. That's causing Orca (Linux screen reader) to read Blank every time it's navigated through.In parallel, using an a11y audit tool like AXE, shows an error because of that:
This PR adds
aria-hidden={ true }
to the options list when it's empty, so it's ignored by assistive technologies.How has this been tested?