Skip to content

Commit df18aa7

Browse files
committed
Admin: Update generic focus styles to use CSS variables.
Replace hardcoded color values in the common link focus styles with CSS custom properties to match the pattern used in buttons and form elements.
1 parent a5d73c3 commit df18aa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-admin/css/common.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ a:focus,
279279
a:focus .media-icon img,
280280
a:focus .plugin-icon,
281281
.wp-person a:focus .gravatar {
282-
color: #043959;
283-
box-shadow: 0 0 0 2px #2271b1;
282+
color: var(--wp-admin-theme-color-darker-20, #183ad6);
283+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
284284
/* Only visible in Windows High Contrast mode */
285285
outline: 2px solid transparent;
286286
}

0 commit comments

Comments
 (0)