0.0.4 • Published 7 years ago
outline-hider v0.0.4
outline-hider
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
Install
$ npm install --save outline-hideror
$ yarn add outline-hiderUsage
import outlineHider from "outline-hider";
// apply to document
outlineHider();
// apply to a specific element
outlineHider({
target: window
})API
Table of Contents
OptionType
Type: object
Properties
targetNode
outlineHider
Attaches event handlers
Parameters
optionsOptionType
Returns function a function which can be used to unregister the handlers
License
MIT © Keilin Olsen