Make WordPress Core

Changeset 62567


Ignore:
Timestamp:
06/28/2026 08:38:14 PM (4 months ago)
Author:
joedolson
Message:

Administration: Fix selected/active buttons in High Contrast Mode.

Follow up to [62467]. Replaces original fix, which turned out to be insufficient. Replaces pseudo-elements with more standard outlines, shifted in scale for visibility.

Props sabernhardt, wildworks, apermo, joedolson.
Fixes #65153.

File:
1 edited

Legend:

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

    r62467 r62567  
    195195        border-color: var(--wp-admin-theme-color, #3858e9);
    196196        box-shadow: inset 0 2px 6px -2px  var(--wp-admin-theme-color-darker-20);
    197         position: relative;
     197        outline: 3px solid transparent;
     198        outline-offset: -3px;
    198199}
    199200
    … …  
    203204        border-color: var(--wp-admin-theme-color-darker-20, #183ad6);
    204205        box-shadow: inset 0 2px 6px -2px  var(--wp-admin-theme-color-darker-20), 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
    205 }
    206 
    207 /* Only visible in Windows High Contrast mode */
    208 .wp-core-ui .button.active:before {
    209         content: "";
    210         display: block;
    211         position: absolute;
    212         width: 100%;
    213         height: 0;
    214         border-top: 3px solid transparent;
    215         bottom: 0;
    216         left: 0;
    217         box-sizing: border-box;
     206        outline-width: 4px;
    218207}
    219208
Note: See TracChangeset for help on using the changeset viewer.