Skip to content

Commit a6a1aad

Browse files
committed
Toolbar: Fix unnatural focus outline on frontend.
Make the focus outline transparent to avoid showing an unnatural focus outline on the front end. In Windows high contrast mode, the focus outline is still displayed as before. Props hbhalodia, joedolson, wildworks. Fixes #65177. git-svn-id: https://develop.svn.wordpress.org/trunk@62459 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 90a2cab commit a6a1aad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/wp-includes/css/admin-bar.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ html:lang(he-il) .rtl #wpadminbar * {
7878
}
7979

8080
#wpadminbar a:focus {
81-
/* Inherits transparent outline only visible in Windows High Contrast mode */
8281
outline-offset: -1px;
82+
/* Only visible in Windows High Contrast mode */
83+
outline: 2px solid transparent;
8384
}
8485

8586
#wpadminbar {

0 commit comments

Comments
 (0)