A simple polyfill for the `:focus-ring` spec
Last updated 3 years ago by garthdb .
Apache-2.0 · Repository · Original npm · Tarball · package.json
$ cnpm install @adobe/focus-ring-polyfill 
SYNC missed versions from official npm registry.

Focus Ring Polyfill

A polyfill for the :focus-ring spec.


It is similar to the WICG polyfill, but adds support for dealing with focus programmatically set after an Arrow key or Esc, which is needed for controls like tab lists or dialogs.

Should be used with the postcss-focus-ring plugin to convert this:

button:focus-ring {
  /* focus-ring only stuff */

to this:

button.focus-ring {
  /* focus-ring only stuff */

This polyfill can then add and remove this .focus-ring to mimic the :focus-ring spec.


Sign the CLA, follow the contributing guidelines, and ask any questions that might arise.

Current Tags

  • 0.1.5                                ...           latest (3 years ago)

1 Versions

  • 0.1.5                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |