Toolbar More menu: focus loss and different behavior between WP 5.2 and master versions #15501
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Related: #15313 (WPCampus report issue)
Looks like the toolbar "More" menu behavior is different between the Gutenberg version in WordPress 5.2 and latest master 33208ba
WordPress 5.2 Gutenberg 5.6.1
Current master 33208ba
To make the focus loss apparent, I used a red outline for the focus style and made a GIF:
Notice that when clicking a button, the red outline disappears.
Pressing the Tab key after the focus loss sets the focus on the adjacent button but that's just because modern browsers try to be smart. They implement a sort of sequential focus navigation starting point mechanism to make tabbing start again from the area where focus was previously. However, that's not guaranteed to work with assistive technologies and doesn't work in Internet Explorer 11.
Additionally, when creating a new post and the post is empty, clicking on "Code Editor" or "Visual Editor" moves focus to the post title. This is inconsistent with the behavior on the other menu items and it's an unexpected interaction.
To recap, there are two issues:
The text was updated successfully, but these errors were encountered: