Use inline styles to disable CSS outline on mouse interactions
We only handle temporary removal of outline, assumes that your webapp has outline styles defined wherever they are wanted
$ npm install --save outline-hider
or
$ yarn add outline-hider
import outlineHider from "outline-hider";
// apply to document
outlineHider();
// apply to a specific element
outlineHider({
target: window
})Type: object
Properties
targetNode
Attaches event handlers
Parameters
optionsOptionType
Returns function a function which can be used to unregister the handlers
MIT © Keilin Olsen