[wp-trac] [WordPress Trac] #64859: Admin bar: Command palette button retains focus styles after closing
WordPress Trac
noreply at wordpress.org
Tue Mar 17 15:02:06 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 joedolson):
I can see a good argument that the `focus` state of adminbar items isn't
clearly a "focus" state, since it doesn't match other standards of focus
state across the WordPress admin.
In my opinion, the solution to fix this is to make the focus state adhere
more closely to other focus states, so that the meaning of the highlight
is more clear.
This is a pre-existing issue, and not specific to the command palette
trigger, though the fact that the command palette is at a significant
remove from the admin bar probably makes it more obvious. For any dropdown
menu in the adminbar, if you tab into it, then hit `esc`, it will close
the menu and focus the parent item, leaving the same effect.
Currently, the default focus shadow is hidden in the adminbar; perhaps we
need to just reconsider that, so the behavior is more consistent with
other focus.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64859#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list