Skip to content

Commit

Permalink
Use focus-visible
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster authored and ntsekouras committed Jan 23, 2024
1 parent 431e5cc commit 2f5b1e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/page-pages/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
width: 100%;
border-radius: 3px 3px 0 0;

&:focus {
&:focus-visible {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
// Windows High Contrast mode will show this outline, but not the box-shadow.
outline: 2px solid transparent;
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/page-patterns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
height: 100%;
border-radius: 3px 3px 0 0;

&:focus {
&:focus-visible {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
// Windows High Contrast mode will show this outline, but not the box-shadow.
outline: 2px solid transparent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
height: 100%;
border-radius: 3px 3px 0 0;

&:focus {
&:focus-visible {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
// Windows High Contrast mode will show this outline, but not the box-shadow.
outline: 2px solid transparent;
Expand Down

0 comments on commit 2f5b1e9

Please sign in to comment.