-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(select): wrong option amount being read out by NVDA #5181
Conversation
@crisbeto Thanks for tackling this; it's been driving me crazy. This change definitely helps when navigating through the list and when the list is open, but I've noticed that the trigger is still being counted after you select an option. So if you open the select, you'll hear "Coffee, 6 of 10", but after you select it, you'll hear "Coffee, 6 of 11" (probably because the panel is closed). Can we address that? It might be more confusing if the total count is inconsistent. I can only test with Voiceover today, so it may or may not be happening with NVDA too. @jelbourn What do you think about using aria-hidden? |
That sounds weird @kara. Perhaps we should be using |
If the trigger is always |
Fixes an issue that caused the wrong amount of options to be read out by NVDA. E.g. if the select has 3 options, NVDA reads out "<value> selected, 2 of 4". The issue seems to come from the fact that NVDA considers the trigger as one of the options, potentially because it's clickable.
18fbf0e
to
4e72ac6
Compare
Alright, I got some time to revisit this one. Setting the |
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.
LGTM
Fixes an issue that caused the wrong amount of options to be read out by NVDA. E.g. if the select has 3 options, NVDA reads out "<value> selected, 2 of 4". The issue seems to come from the fact that NVDA considers the trigger as one of the options, potentially because it's clickable.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes an issue that caused the wrong amount of options to be read out by NVDA. E.g. if the select has 3 options, NVDA reads out "{{value}} selected, 2 of 4". The issue seems to come from the fact that NVDA considers the trigger as one of the options, potentially because it's clickable.