[wp-trac] [WordPress Trac] #64859: Admin bar: Command palette button retains focus styles after closing
WordPress Trac
noreply at wordpress.org
Tue Mar 17 01:55:55 UTC 2026
#64859: Admin bar: Command palette button retains focus styles after closing
-------------------------------------+-------------------------------------
Reporter: juanfra | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Toolbar | Version: trunk
Severity: normal | Resolution:
Keywords: has-screenshots has- | Focuses: ui, accessibility,
patch | administration
-------------------------------------+-------------------------------------
Comment (by wildworks):
The current behavior is correct from an accessibility standpoint, but I
understand the confusion @juanfra is experiencing.
When the command palette is closed, it's natural that focus returns to the
trigger button, but the admin bar item that has focus changes its
background and text color. This style persists unless another element in
the document is clicked or focused, which might give the impression that
some function is enabled in the admin bar.
If we want to reduce this awkward feeling even a little, one way might be
to remove the background color change from the focus style and leave only
the text color change.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64859#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list