# WICG/focus-visible

Polyfill for `:focus-visible`

Repository: https://github.com/WICG/focus-visible
Canonical: https://ross.abutalabs.com/products/focus-visible
Homepage: https://wicg.github.io/focus-visible/demo/
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2025-11-11T01:24:50+00:00

## Health v2 (maintenance only)
Score: 46/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 51, release rhythm 8, longevity 100
- inputs: {"age_days": 3465, "days_push": 296, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1603, forks 125 (observed 2026-08-28T04:05:09.888194+00:00)

## What it is
A JavaScript polyfill for the CSS :focus-visible pseudo-selector, adding a focus-visible class to elements that should show a focus ring (e.g., keyboard focus). Now that all major browsers support :focus-visible natively, the project is in maintenance mode and users are encouraged to use the native selector.

## Use cases
- show focus rings only for keyboard users, not mouse clicks
- polyfill :focus-visible in older browsers
- improve keyboard accessibility of web apps
- hide focus outline on mouse focus but keep it on tab focus
- style focus indicators consistently across browsers

## When to choose
- you must support legacy browsers lacking native :focus-visible support
- you need keyboard-only focus indicators in an older codebase

## When to avoid
- you only target modern browsers that natively support :focus-visible
- you want an actively developed solution

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, accessibility
- domain: web-development, frontend, accessibility
- platform: browser, browser-extension
- tags: polyfill, css, focus-visible, keyboard-navigation, javascript

## Member repositories
- WICG/focus-visible (main) score 46

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:09.888194+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:52:22.704057+00:00, confidence not recorded.
  - readme: https://github.com/WICG/focus-visible (fetched 2026-08-28T04:05:09.888194+00:00, sha ebcb10721fca)
  - homepage: https://wicg.github.io/focus-visible/demo/ (fetched 2026-08-29T11:24:21.766266+00:00, sha b777f11aa834)
  - registry_npm: https://registry.npmjs.org/focus-visible (fetched 2026-08-29T11:24:21.774973+00:00, sha 5f9b8f4c92c6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
