Remove aria-hidden from FocusTrapZone's bumpers#9019
Conversation
|
Component perf results:
|
|
cliffkoh
left a comment
There was a problem hiding this comment.
Might be worth checking who added aria-hidden in the first place and get sign off from the original author.
JasonGore
left a comment
There was a problem hiding this comment.
I do not see bumpers anywhere in the ARIA examples. Can you please show in detail where you see bumpers in the ARIA example?
There should be no need for bumpers when using aria-modal because aria-modal implicitly handles this behavior.
We want behavior similar aria-modal in FocusTrapZone but there is no browser analog. As a result, we have to use "virtual" bumpers. They are technically focusable in that they receive focus, but they immediately pass it on. They are not and should never be focusable from the users' perspective, and they should be completely hidden from an accessibility perspective.
|
@JasonGore They get added in JS here: Resulting in: Though not necessarily used for the same functionality, they do highlight how some element that needs to be "tabbable but not visible" could be implemented. I don't see the side effects of removing aria-hidden, as won't screen readers ignore them due to lack of any label or description and focus forwarding? What would be your recommended solution? Also as per my understanding |
JasonGore
left a comment
There was a problem hiding this comment.
There it is! Sorry I missed that.
The concern I have is that the bumpers get focused in scan mode, but that seems to be the case even for the ARIA sample (at least the top bumper does.) Seeing as their implementation is so close in concept to FocusTrapZone, I guess it's ok to remove aria-hidden.
|
🎉 Handy links: |


Pull request checklist
$ npm run changeDescription of changes
As bumpers are focus-able, having
aria-hidden: trueis violating a rule. Having noaria-hiddenis better in this case.I noticed the implementation of trapping focus in a W3 aria examples, they didn't require any
aria-hiddenfor bumpers. Windows Narrator doesn't inform their presence either.Focus areas to test
Any accessibility regressions
Microsoft Reviewers: Open in CodeFlow