1.0.0 • Published 5 years ago
outline-none v1.0.0
outline:none in an accessible way
Remove outline from button
and a
, unless the user press the tab
key.
Based on this article.
Install
npm i outline-none
Usage
Somewhere in your client side code:
require("outline-none");
or
import "outline-none";
Browser compatibility
I made the code ugly just to make it IE8+ compatible. I did not test it with IE8 though.
License
ISC
Contributing
Please, feel free to fork and contribute!
1.0.0
5 years ago