Skip to content

Latest commit

 

History

History
62 lines (36 loc) · 1.74 KB

README.md

File metadata and controls

62 lines (36 loc) · 1.74 KB

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