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
The focus is trapped on purpose here, since we treat that as kind of a modal, since it would also vanish when clicking outside. You should be able to press Escape to close the context menu and focus should automatically jump to the trigger element back. We also focus the element itself when opening it, so the user will directly get the focus shift to that modal element. Also you can use arrow keys inside the context menu to navigate not just Tab.
Could you please revalidate, if that usability is okay. I think it should be aligned well with the WCAG recommendations about modals.
I've thought more about this - the behavior is fine, but it is indicative of the same "context" problem we talk about on the calls. When a sighted user clicks the button. they see a visual context switch that signals to them that they can press escape and leave the modal. A screen reader user gets no such signal. So, I would amend the above to make my suggested fix to insert the screen reader text to "Press escape to exit menu"
This behavior applies to Elastic UI Buttons Accessibility #688 as well, for the dropdown button component as a whole.
Activity
[-]Color Theme Picker Keybaord Trap[/-][+]Color Theme Picker Keyboard Trap[/+]timroes commentedon Apr 19, 2018
The focus is trapped on purpose here, since we treat that as kind of a modal, since it would also vanish when clicking outside. You should be able to press Escape to close the context menu and focus should automatically jump to the trigger element back. We also focus the element itself when opening it, so the user will directly get the focus shift to that modal element. Also you can use arrow keys inside the context menu to navigate not just Tab.
Could you please revalidate, if that usability is okay. I think it should be aligned well with the WCAG recommendations about modals.
aphelionz commentedon Apr 24, 2018
@timroes
I've thought more about this - the behavior is fine, but it is indicative of the same "context" problem we talk about on the calls. When a sighted user clicks the button. they see a visual context switch that signals to them that they can press escape and leave the modal. A screen reader user gets no such signal. So, I would amend the above to make my suggested fix to insert the screen reader text to "Press escape to exit menu"
This behavior applies to Elastic UI Buttons Accessibility #688 as well, for the dropdown button component as a whole.
snide commentedon May 18, 2018
This was fixed with #844