-
Notifications
You must be signed in to change notification settings - Fork 222
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
aria-hidden strategy outdated with aria-modal="true" #948
Comments
We do both to cover all the bases, last I checked aria-modal wasn't super well supported by SRs. Is this causing a problem or a heads up? |
Using MacOS for all: It's causing some axe errors to be reported when using axe run on the content (both chrome plugin/cypress-axe use etc) I'm noticing an issue with the focus trap, but perhaps unrelated. https://react-bootstrap.github.io/components/modal/#modals-live The focus trap works better when I have VoiceOver enabled. Without VoiceOver enabled, You can tab through to the save changes button, and then start shift tabbing back. Past the top right x for close window, the modal will scroll the background content of the page and the focus is on an unknown item at this point. I can create a separate ticket for the focus trap issues with more details if needed. Vue Bootstrap modals seem to follow the focus trap more of W3 |
The focus trap behavior is intentional in how focus can shift out of the window and back in |
? A modal shouldn't allow focus outside of its focusable content while it is open though. The behaviour is different here than all other modal libraries I've compared to. Only a dialog that's not a modal should allow focus to shift outside to the main window.
https://reactcommunity.org/react-modal/accessibility/#keyboard https://van11y.net/downloads/modal/demo/index.html |
Describe the bug
"Applying the aria-modal property to the dialog element replaces the technique of using aria-hidden on the background for informing assistive technologies that content outside a dialog is inert."
https://www.w3.org/TR/wai-aria-practices-1.1/examples/dialog-modal/dialog.html#rps_label
To Reproduce
aria-hidden
is added to the background content withid="___gatsby"
Expected behavior
aria-hidden
should not be added to the background content withid="___gatsby"
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information)
The text was updated successfully, but these errors were encountered: