Adds a classNamw to the documentElement to be used to hide CSS outline on mouse interactions, show on keyboard interactions. Until :focus-visible has broader browser support.
Install the package
npm i -S @stormid/outliner
Initialise the module
import '@stormid/outliner';
Add CSS
.no-outline * {
outline: 0 none !important;
box-shadow: none !important;
}
npm t
MIT