Last active
December 28, 2020 16:06
-
-
Save robby1066/c1310e6551d7d2257b8e1dc7111ce382 to your computer and use it in GitHub Desktop.
A VS Code snippet for css / scss files that includes a `:focus` selector on `:hover` declarations to enhance keyboard navigation
This file contains hidden or 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
{ | |
"Hover / Focus": { | |
"prefix": ":hover", | |
"body": [ | |
":hover,", | |
"${TM_CURRENT_LINE/:ho?v?e?r?/:focus/} {", | |
" $1", | |
"}" | |
], | |
"description": "Hover / Focus" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docs on how to install snippets in VS Code