Created
February 19, 2015 10:00
-
-
Save Sitebase/8da8495981672a23daa3 to your computer and use it in GitHub Desktop.
I think we all can agree that the focus outlines are ugly and in most cases destroy the visual aspect of elements. With this snippet you can set the outline to none and still give the user some feedback about where on the page the focus is. For an example of this take a look at the first button in this screenshot https://www.dropbox.com/s/bl3x74…
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
*:focus:before { | |
content: "⇥"; | |
position: absolute; | |
font-size: 0.8em; | |
left: 5px; | |
top: -30%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment