Make WordPress Core

Changeset 63190


Ignore:
Timestamp:
08/11/2026 11:05:13 PM (34 hours ago)
Author:
joedolson
Message:

Toolbar: Match hover state to focus state.

Follow up to [63009]. The original commit strengthened the focus state in the admin toolbar, but didn't change the hover state. This created a mismatch in behavior where the admin toolbar behaved differently from the primary admin menu, which has a shared hover and focus state.

Apply the focus state to the hover condition as well, so that the behavior matches the admin sidebar.

Props fushar, wildworks, ravichudasama01, afercia, joedolson.
Fixes #65849.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/admin-bar.css

    r63188 r63190  
    8383        /* Only visible in Windows High Contrast mode */
    8484        outline: 2px solid transparent;
     85}
     86
     87#wpadminbar a:hover,
     88#wpadminbar a:focus,
     89#wpadminbar .ab-item[tabindex="0"]:hover,
     90#wpadminbar .ab-item[tabindex="0"]:focus {
    8591        box-shadow: inset 0 -4px 0 0 currentColor;
    8692        transition: box-shadow 0.1s linear;
    8793}
    8894
     95#wpadminbar .ab-submenu a:hover,
    8996#wpadminbar .ab-submenu a:focus,
     97#wpadminbar .ab-submenu .ab-item[tabindex="0"]:hover,
    9098#wpadminbar .ab-submenu .ab-item[tabindex="0"]:focus {
    9199        box-shadow: inset 4px 0 0 0 currentColor;
Note: See TracChangeset for help on using the changeset viewer.