-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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/issue 1387 sidebar icons nvda #11816
Fix/issue 1387 sidebar icons nvda #11816
Conversation
{ /* | ||
This span is wrapping the icon so when `isOpened` is updated the | ||
state of `aria-expanded` isn't re-announced to NVDA | ||
*/ } |
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.
Thanks @timwright12! Actually, it's the opposite case: Firefox + NVDA don't announce aria-expanded because the browser repaints the whole element. Not sure we should patch it though, as next NVDA mitigates the issue.
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.
@afercia I updated the comment in case we end up wanting to merge this in. I do agree with your statement in #1387 that we probably shouldn't rely on alpha releases of software that may or may not be released by the 5.0 milestone. Especially when it's something so small and easy to patch like this.
So if we want to push this fix, it's here, if not we should close out all the open items related to it, so no one else jumps in - and certainly remove it from the 5.0 milestone list.
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.
Coolio, looks good!
Hi @timwright12: just so you know the failing snapshots here are legitimate; in the future it's worth running In this case the HTML has changed so snapshots need updating. In this case I've just gone ahead and updated them with |
925db7f
to
21548e7
Compare
@tofumatt oh excellent, thanks for clearing that up. I was wondering about the tests! |
Description
Fixes #1387
How has this been tested?
Linting and in-browser.
Types of changes
Added a span with aria-hidden="true" to prevent NVDA from over-announcing the sidebar component state.
Checklist: