Make WordPress Core


Ignore:
Timestamp:
08/16/2026 04:10:24 PM (3 weeks ago)
Author:
joedolson
Message:

Toolbar: Revert focus and hover style changes.

Reverts the focus and hover style changes in the admin toolbar. Reverts [63190], [63009], and [63188], restoring the appearance in WordPress 7.0.

Props fushar, wildworks, ravichudasama01, afercia, joen, keoshi, cbusquets1989, annezazu.
Fixes #65849. See #65445.

File:
1 edited

Legend:

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

    r63190 r63306  
    7878}
    7979
    80 #wpadminbar a:focus,
    81 #wpadminbar .ab-item[tabindex="0"]:focus {
    82         outline-offset: -2px;
     80#wpadminbar a:focus {
     81        outline-offset: -1px;
    8382        /* Only visible in Windows High Contrast mode */
    8483        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 {
    91         box-shadow: inset 0 -4px 0 0 currentColor;
    92         transition: box-shadow 0.1s linear;
    93 }
    94 
    95 #wpadminbar .ab-submenu a:hover,
    96 #wpadminbar .ab-submenu a:focus,
    97 #wpadminbar .ab-submenu .ab-item[tabindex="0"]:hover,
    98 #wpadminbar .ab-submenu .ab-item[tabindex="0"]:focus {
    99         box-shadow: inset 4px 0 0 0 currentColor;
    10084}
    10185
     
    240224}
    241225
    242 #wpadminbar > #wp-toolbar li:hover span.ab-label,
     226#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
    243227#wpadminbar > #wp-toolbar li.hover span.ab-label,
    244 /* The adminbar menu may output either links or focusable div elements. */
    245 /* As such, we target the focus state without specifying the element type. */
    246 #wpadminbar > #wp-toolbar :focus span.ab-label {
     228#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
    247229        color: #72aee6;
    248230}
     
    313295#wpadminbar li.hover .ab-item:before,
    314296#wpadminbar li:hover #adminbarsearch:before,
    315 #wpadminbar li #adminbarsearch.adminbar-focused:before,
    316 #wpadminbar.mobile .quicklinks .ab-item:focus:before {
     297#wpadminbar li #adminbarsearch.adminbar-focused:before {
    317298        color: #72aee6;
    318299}
     
    399380}
    400381
     382#wpadminbar ul li:last-child,
     383#wpadminbar ul li:last-child .ab-item {
     384        box-shadow: none;
     385}
     386
    401387/**
    402388 * Recovery Mode
     
    467453        position: absolute;
    468454        left: -72px;
    469         top: 0;
     455        top: 4px;
    470456        width: 64px;
    471457        height: 64px;
     
    481467        background: none;
    482468        padding: 0;
    483         line-height: 1.38461538;
     469        height: 18px;
    484470}
    485471
     
    490476
    491477#wpadminbar #wp-admin-bar-user-info .username {
     478        color: #a7aaad;
    492479        font-size: 11px;
    493480}
     
    925912                width: 52px;
    926913                padding: 0;
     914                color: #a7aaad; /* @todo not needed? this text is hidden */
    927915                position: relative;
    928916        }
     
    10441032                font-size: 16px;
    10451033                line-height: 1.5;
     1034                color: #f0f0f1;
     1035        }
     1036
     1037        #wpadminbar #wp-admin-bar-user-info a {
     1038                padding-top: 4px;
     1039        }
     1040
     1041        #wpadminbar #wp-admin-bar-user-info .username {
     1042                line-height: 0.8 !important;
     1043                margin-bottom: -2px;
    10461044        }
    10471045
Note: See TracChangeset for help on using the changeset viewer.