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
mrleblanc101
changed the title
[Bug]: Opening the preference modal using keyboard with VoiceOver gives no feedback
[Bug][a11y]: Opening the preference modal using keyboard navigation gives no feedback
May 31, 2024
The dialog won't be announced unless focus is moved to it or into it. The most common convention is to put focus on the first focusable item, which is generally the Close button.
When the dialog is closed, focus should return to the triggering element. Currently that happens when you press Esc to dismiss the dialog, but not when you click on the X/close button. I mention this requirement here because you'll need to save the item that has focus (document.activeElement) before setting the focus to the Close button when the Preferences dialog appears.
Focusing the first element (the close button) is not a11y compliment. The user will have no way of understanding what is happening as the screen reader will simply read "Close modal" or something similar. The focus should be on the whole banner so that screen reader start ready the content.
Expected Behavior
When you open the preference modal, the focus should be transfered to the modal so that the screen reader actually says something.
Current Behavior
The focus stays on the button and nothing is said by the screen reader.
Steps to reproduce
Proposed fix or additional info.
No response
Version
3.0.1
On which browser do you see the issue?
Firefox, Chrome, Safari, Microsoft Edge
The text was updated successfully, but these errors were encountered: