Nocturnal Prancing Mosquito

    @adobe/focus-ring-polyfill

    0.1.5 • Public • Published

    Focus Ring Polyfill

    A polyfill for the :focus-ring spec.

    Usage

    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.

    Contributing

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

    Install

    npm i @adobe/focus-ring-polyfill

    DownloadsWeekly Downloads

    1,187

    Version

    0.1.5

    License

    Apache-2.0

    Unpacked Size

    18.8 kB

    Total Files

    9

    Last publish

    Collaborators

    • adobehalls
    • fullcolorcoder
    • marbec
    • tripod
    • garthdb
    • lazd
    • adobe-admin
    • patrickfulton
    • trieloff
    • shazron
    • krisnye
    • dcpfsdk
    • natebaldwin
    • devongovett
    • aspro83
    • symanovi
    • dpfister
    • stefan-guggisberg
    • korra
    • rofe
    • kptdobe