outline-hider
v0.0.4
Published
use inline styles to disable CSS outline on mouse interactions
Downloads
5
Readme
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-hider
or
$ yarn add outline-hider
Usage
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
target
Node
outlineHider
Attaches event handlers
Parameters
options
OptionType
Returns function a function which can be used to unregister the handlers
License
MIT © Keilin Olsen