WICG/focus-visible
Polyfill for `:focus-visible` observed · 2026-08-28
Health v2 · maintenance only
46/100
- Activity 51
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3465
- days_rel: n/a
- days_push: 296
- n_releases_24m: 0
Adoption not part of the score
1603 stars · 125 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity maintenance
ui-components accessibility web-development frontend accessibility browser browser-extension polyfill css focus-visible keyboard-navigation javascript
3 sources
- readme: https://github.com/WICG/focus-visible · fetched 2026-08-28 · ebcb10721fca
- homepage: https://wicg.github.io/focus-visible/demo/ · fetched 2026-08-29 · b777f11aa834
- registry_npm: https://registry.npmjs.org/focus-visible · fetched 2026-08-29 · 5f9b8f4c92c6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| WICG/focus-visible | main | 46 |
For agents
markdown · JSON · MCP: product_card(name="WICG/focus-visible")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem