Reconsider using aria-hidden instead of aria-modal
See original GitHub issueFirst of all, thank you for your great work with this project!
But I noticed that v7.0 dropped the use of aria-hidden
in favor of aria-modal
. Would you be open to reconsider that decision?
Aria-modal
still has very limited support in Talkback and iOS VoiceOver, meaning that it is possible to access the background content when swiping through the modal. This can lead to pretty confusing experience for mobile screen reader users. See the following screenshot:
Here is the a11ysupport page for the aria-modal
technique: https://a11ysupport.io/tech/aria/aria-modal_attribute
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
aria-modal - Accessibility - MDN Web Docs
The aria-modal attribute indicates whether an element is modal when displayed.
Read more >Consider allowing `aria-hidden=false` on visibly rendered ...
In relation to aria-hidden error cases #1254 and #1255, @aleventhal suggested that we reconsider allowing aria-hidden=false on visibly ...
Read more >Accessible Rich Internet Applications (WAI-ARIA) 1.2 - W3C
This allows authors to use them instead of custom WAI-ARIA enabled user ... aria-haspopup (deprecated on this role in ARIA 1.2); aria-hidden ......
Read more >Making a modal accessible with aria-hidden or inert
Goal: I don't want screenreaders to announce anything in the background (let's call it backgroundContainer) until the modal is dismissed. Tried: ...
Read more >react-aria-modal demo
(Although, sadly, you can still mess with the scrolling using a touch screen.) The modal is appended to the end of document.body instead...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@fymmot Thank you for coming back to me and for sharing you experience with usability testing. At this stage, I would recommend authoring significant documentation about this limitation, as you suggested. I will also recommend the workaround from @chalkygames123, since I feel like it’s a great and rather un-intrusive solution to this problem.
@fymmot FYI, you can easily address this issue by hooking a library like aria-hidden to the
show
andhide
events.