Make WordPress Core


Ignore:
Timestamp:
08/16/2026 04:10:24 PM (2 months 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-admin/css/colors/_admin.scss

    r63009 r63306  
    417417}
    418418
    419 #wpadminbar > #wp-toolbar li:hover span.ab-label,
    420 #wpadminbar > #wp-toolbar li.hover span.ab-label,
    421 /* The adminbar menu may output either links or focusable div elements. */
    422 /* As such, we target the focus state without specifying the element type. */
    423 #wpadminbar > #wp-toolbar :focus span.ab-label {
     419#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
     420#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
     421#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
    424422        color: variables.$menu-submenu-focus-text;
    425423}
    … …  
    452450
    453451#wpadminbar .quicklinks li .blavatar,
    454 #wpadminbar .menupop .menupop > .ab-item:before,
    455 #wpadminbar.mobile .quicklinks .ab-icon:before,
    456 #wpadminbar.mobile .quicklinks .ab-item:before {
     452#wpadminbar .menupop .menupop > .ab-item:before {
    457453        color: variables.$menu-icon;
    458454}
    … …  
    479475}
    480476
    481 // Note that the icon of the site-name item is not wrapped within a span with class ab-icon like other items.
    482477#wpadminbar .quicklinks li a:hover .blavatar,
    483478#wpadminbar .quicklinks li a:focus .blavatar,
    … …  
    485480#wpadminbar .menupop .menupop > .ab-item:hover:before,
    486481#wpadminbar.mobile .quicklinks .hover .ab-icon:before,
    487 #wpadminbar.mobile .quicklinks .hover .ab-item:before,
    488 #wpadminbar.mobile .quicklinks .ab-item:focus:before {
     482#wpadminbar.mobile .quicklinks .hover .ab-item:before {
    489483        color: variables.$menu-submenu-focus-text;
    490484}
     485
     486#wpadminbar.mobile .quicklinks .ab-icon:before,
     487#wpadminbar.mobile .quicklinks .ab-item:before {
     488        color: variables.$menu-icon;
     489}
     490
    491491
    492492/* Admin Bar: search */
    … …  
    532532}
    533533
     534#wpadminbar #wp-admin-bar-user-info a:hover .display-name {
     535        color: variables.$menu-submenu-focus-text;
     536}
     537
    534538#wpadminbar #wp-admin-bar-user-info .username {
    535539        color: variables.$menu-submenu-text;
    536540}
    537541
    538 #wpadminbar #wp-admin-bar-user-info a:hover .display-name,
    539 #wpadminbar #wp-admin-bar-user-info a:focus .display-name,
    540 #wpadminbar #wp-admin-bar-user-info a:hover .username,
    541 #wpadminbar #wp-admin-bar-user-info a:focus .username {
    542         color: variables.$menu-submenu-focus-text;
    543 }
    544542
    545543/* Pointers */
Note: See TracChangeset for help on using the changeset viewer.