diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 73d92d661d..75048d3be5 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -141,21 +141,24 @@ .screen-reader-shortcut { position: absolute; top: -1000em; -} - -.screen-reader-shortcut:focus { left: 6px; - top: -25px; height: auto; width: auto; display: block; font-size: 14px; font-weight: 600; padding: 15px 23px 14px; + /* Background and color set to prevent false positives in automated accessibility tests. */ background: #f0f0f1; color: #2271b1; z-index: 100000; line-height: normal; +} + +.screen-reader-shortcut:focus { + top: -25px; + /* Overrides a:focus in the admin. See ticket #56789. */ + color: #2271b1; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); text-decoration: none; /* Only visible in Windows High Contrast mode */ diff --git a/src/wp-includes/css/admin-bar.css b/src/wp-includes/css/admin-bar.css index 062517fac7..8f73274b03 100644 --- a/src/wp-includes/css/admin-bar.css +++ b/src/wp-includes/css/admin-bar.css @@ -719,11 +719,7 @@ html:lang(he-il) .rtl #wpadminbar * { #wpadminbar .screen-reader-shortcut { position: absolute; top: -1000em; -} - -#wpadminbar .screen-reader-shortcut:focus { left: 6px; - top: 7px; height: auto; width: auto; display: block; @@ -735,6 +731,11 @@ html:lang(he-il) .rtl #wpadminbar * { z-index: 100000; line-height: normal; text-decoration: none; +} + +#wpadminbar .screen-reader-shortcut:focus { + top: 7px; + background: #f0f0f1; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); }