The new "copy block" action triggers a focus loss #23994
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Priority] High
Used to indicate top priority items that need quick attention
[Type] Bug
An existing feature does not function as intended
Describe the bug
In WordPress 5.5, the block editor has a new feature to copy the block content. When using a keyboard, activating the "Copy" button triggers a focus loss: focus is lost and the tab sequence starts over from the document root.
Focus losses are one of the worst experiences for keyboard users and assistive technologies users, as any previous context is lost and users are forced to navigate again though great part of the UI to get back to the previous position.
To reproduce
Animated GIF to illustrate the behavior:
Noting that:
Since this is a new feature in WordPress 5.5, I'm setting the priority to "high" as any new released feature should be as accessible as possible (certainly should avoid focus losses).
The text was updated successfully, but these errors were encountered: