@stormid/outliner

1.0.0-alpha.5 • Public • Published

Outliner

Adds a classNamw to the documentElement to be used to hide CSS outline on mouse interactions, show on keyboard interactions. Until :focus-visible has broader browser support.


Usage

Install the package

npm i -S @stormid/outliner

Initialise the module

import '@stormid/outliner';

Add CSS

.no-outline * {
    outline: 0 none !important;
    box-shadow: none !important;
}

Tests

npm t

License

MIT

Package Sidebar

Install

npm i @stormid/outliner

Weekly Downloads

100

Version

1.0.0-alpha.5

License

MIT

Unpacked Size

6.28 kB

Total Files

11

Last publish

Collaborators

  • sarah-storm
  • mjbp
  • stormid-admin
  • lynchjames