Edit Post: More Options menu toggle buttons cause focus loss when toggled #14849
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Package] Edit Post
/packages/edit-post
Previously: #14456 (comment)
Describe the bug
When activating the toggleable menu items from the post editor's More Options menu, a focus loss occurs. Proceeding to press Tab will restore focus to the expected position (in Chrome at least); however, the focus loss should not occur.
To reproduce
Expected behavior
Focus should remain on the activated toggle button ("Top Toolbar"), indicated by the focus outline on the button.
Desktop:
Additional context
As noted at #14456 (comment), this has to do with how the menu item elements become unmounted and remounted.
The text was updated successfully, but these errors were encountered: