You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiModal] VoiceOver + Safari is able to escape the focus trap when navigating by virtual cursor instead of keyboard #7532
Describe the bug
Modal dialogs must trap keyboard and virtual cursor focus to ensure screen reader users do not accidentally escape the modal and start interacting with the rest of the page. Our EuiModal has a bug where I can traverse behind the modal when I an navigating using the VO shortcut plus arrow keys. Video attached below.
Impact and severity
Screen reader users could be negatively impacted by this issue, especially when we're using modal dialogs for things like confirming delete actions, entering user data, or modifying instances.
Environment and versions
EUI version: 93.1.1
React version: 18
Kibana version (if applicable): 8.12
Browser: Safari
Operating System: MacOS Ventura
To Reproduce
Steps to reproduce the behavior:
Go to the EuiModal docs page. You must be using Safari on MacOS to reproduce this bug.
Turn on VoiceOver
Tab to the first modal button, and press Ctrl + Opt + Enter to open the modal. Verify VO says "You are in a modal".
Press Ctrl + Opt + Left_Arrow 3-5 times. Your virtual cursor (black square) should be behind the modal and behind the gray smoke layer. This is the bug.
Expected behavior
Modal dialogs should prevent users from escaping with a screen reader or keyboard.
VO has been having issues lately, this may be resolved in time on Apple's end without action from us - we should re-test in 6 months to see if it's still an issue
@cee-chen I think I have a line on this item. I'm working #7563 tonight and by happenstance, Safari + VO trapped the focus with virtual cursor when I properly identified the parent DIV as a modal. I'm still testing, but might be able to close two tickets fairly easily here. Will keep working it tonight and hopefully PR in the morning.
Activity
cee-chen commentedon Mar 4, 2024
@1Copenut Can you help us set a priority on this? Does this only affect VO, and not JAWS/NVDA?
edit: only VO
cee-chen commentedon Mar 4, 2024
VO has been having issues lately, this may be resolved in time on Apple's end without action from us - we should re-test in 6 months to see if it's still an issue
1Copenut commentedon Mar 8, 2024
@cee-chen I think I have a line on this item. I'm working #7563 tonight and by happenstance, Safari + VO trapped the focus with virtual cursor when I properly identified the parent DIV as a modal. I'm still testing, but might be able to close two tickets fairly easily here. Will keep working it tonight and hopefully PR in the morning.