Skip to content

Commit

Permalink
Merge pull request #3704 from Automattic/style/avoid-1px-jank-on-hover
Browse files Browse the repository at this point in the history
style(tabbed-nav): avoid 1px jank on link hover
  • Loading branch information
dkoo authored Jan 29, 2025
2 parents 122cecc + b551b91 commit b4b317c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/src/tabbed-navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
display: flex;
font-weight: bold;
height: 48px;
outline: none;
padding: 12px 15px;
text-decoration: none;

Expand All @@ -51,15 +52,10 @@
&:focus,
&:hover {
color: var(--wp-admin-theme-color);
outline: none;
}

&:focus {
box-shadow: none;
}

&:focus-visible {
outline: 2px solid;
outline: 2px solid var(--wp-admin-theme-color);
outline-offset: -2px;
}

Expand Down

0 comments on commit b4b317c

Please sign in to comment.