question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reconsider using aria-hidden instead of aria-modal

See original GitHub issue

First 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:

Modal displayed on iPhone with VoiceOver, with background content selected

Here is the a11ysupport page for the aria-modal technique: https://a11ysupport.io/tech/aria/aria-modal_attribute

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KittyGiraudelcommented, Sep 8, 2022

@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.

1reaction
chalkygames123commented, Sep 8, 2022

@fymmot FYI, you can easily address this issue by hooking a library like aria-hidden to the show and hide events.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found