0.0.4 • Published 6 years ago

outline-hider v0.0.4

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

outline-hider

Generated with nod NPM version Build Status Coverage Status

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

outlineHider

Attaches event handlers

Parameters

Returns function a function which can be used to unregister the handlers

License

MIT © Keilin Olsen