Modal: dynamically change aria-hidden
based on modal state
#20
Replies: 7 comments 4 replies
-
Good find @tinymachine, thank you! I'll add it to the list 🙂 |
Beta Was this translation helpful? Give feedback.
-
My pleasure, @markteekman! |
Beta Was this translation helpful? Give feedback.
-
@tinymachine tested it myself and read into it a little more but it should work fine as it is! The modal has it's |
Beta Was this translation helpful? Give feedback.
-
Thanks for explaining, @markteekman! That behavior makes perfect sense, and works correctly for me on your Modal demo page. Weirdly, I'm experiencing an issue where embedded Vimeo videos in modals are being read by VoiceOver on iOS 15.4.1 even when the modals are closed (i.e. |
Beta Was this translation helpful? Give feedback.
-
@tinymachine it got me thinking, could it have anything to do with the embedded Vimeo video being an |
Beta Was this translation helpful? Give feedback.
-
I think you're exactly right — this is not at all an issue with your code, or with Vimeo. It looks like there's a Safari bug whereby VoiceOver reads the contents of RPReplay_Final1653252262.mov |
Beta Was this translation helpful? Give feedback.
-
One suggestion might be for your Modal component to toggle |
Beta Was this translation helpful? Give feedback.
-
Closed modals don't have
aria-hidden
set to false, so screen readers (like VoiceOver on macOS and iOS) will still read the contents of closed modals. This should probably be defaulted to true, and changed to false in theopenModal()
method, and reset to true incloseModal()
.Beta Was this translation helpful? Give feedback.
All reactions