Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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…
*: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