Skip to content

Commit e0e6680

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@62567 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2a5a37e commit e0e6680

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

src/wp-includes/css/buttons.css

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -194,27 +194,16 @@ TABLE OF CONTENTS:
194194
color: var(--wp-admin-theme-color-darker-20, #183ad6);
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

200201
.wp-core-ui .button.active:focus {
201202
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
202203
color: var(--wp-admin-theme-color-darker-20, #183ad6);
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

220209
.wp-core-ui .button[disabled],

0 commit comments

Comments
 (0)