Skip to content

Commit

Permalink
Make it so that outlines are only shown on keyboard interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
markteekman committed Nov 25, 2021
1 parent 881e4ca commit 4699319
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/styles/base/_outline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@
-webkit-box-shadow: 0 0 0 2px white;
box-shadow: 0 0 0 2px white;
}

*:focus,
*:focus-visible {
@include outline;
}

*:focus:not(:focus-visible) {
outline: none;
box-shadow: none;
}

0 comments on commit 4699319

Please sign in to comment.