Skip to content

Instantly share code, notes, and snippets.

@Sitebase
Created February 19, 2015 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sitebase/8da8495981672a23daa3 to your computer and use it in GitHub Desktop.
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…
*: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