Last active
January 15, 2019 17:01
-
-
Save joshuabaker/45aba6c6b5c73e65539a26f3538aefaf to your computer and use it in GitHub Desktop.
Removes outline for mouse users but preserves it for keyboard users.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "remove-focus-outline", | |
"version": "1.0.0" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Removes outline for mouse users but preserves it for keyboard users. | |
Source: https://twitter.com/leaverou/status/1045768279753666562?s=12 | |
*/ | |
:focus:not(:focus-visible) { | |
outline: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment