Skip to content

Instantly share code, notes, and snippets.

@DrewDahlman
Created June 27, 2019 10:25
Show Gist options
  • Save DrewDahlman/f7695560d2ada7496073280f515cffa2 to your computer and use it in GitHub Desktop.
Save DrewDahlman/f7695560d2ada7496073280f515cffa2 to your computer and use it in GitHub Desktop.
.no-focus-outline:focus {
outline: none;
}
document.body.addEventListener("keyup", event => {
if (event.keyCode === 9) {
let _$elements = document.querySelectorAll(".no-focus-outline");
for (let i = 0; i < _$elements.length; i++) {
_$elements[i].classList.remove("no-focus-outline");
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment