[wp-trac] [WordPress Trac] #64859: Admin bar: Command palette button retains focus styles after closing
WordPress Trac
noreply at wordpress.org
Sat Mar 14 09:12:00 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 | Keywords: has-
Focuses: ui, accessibility, administration | screenshots
-----------------------------------------------+---------------------------
The command palette trigger button in the admin bar keeps visible focus
styles (with midnight blue is quite visible) after the palette is closed,
regardless of whether it's closed via mouse or keyboard.
This creates confusion and suggests the button is in an active/focused
state when it's not.
We should keep the focus on that button when accessed/closed via keyboard,
but probably need to rely on `:focus-visible`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64859>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list