You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new focus-visible CSS4 spec allows a developer to get rid of the focus outline if you interacted with a mouse or touch to avoid the messiness of the focus outline while maintaining accessibility.
This is semi-official polyfill because it's maintained by WICG. Based on the proposed CSS :focus-visible pseudo-selector, this prototype adds a focus-visible class to the focused element, in situations in which the :focus-visible pseudo-selector should match.
Hi @toddparker, polyfill.io does not aim to polyfill CSS features such as this because they are not yet possible to do correctly, you can see this with the focus-visible polyfill as it requires using a specific classname to work.
When CSS Houdini has landed in stable browsers, polyfill.io may start supporting CSS polyfills.
What
The new
focus-visible
CSS4 spec allows a developer to get rid of the focus outline if you interacted with a mouse or touch to avoid the messiness of the focus outline while maintaining accessibility.Spec:
https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo
Explainer:
https://github.com/WICG/focus-visible/blob/master/explainer.md
Details
This is semi-official polyfill because it's maintained by WICG. Based on the proposed CSS :focus-visible pseudo-selector, this prototype adds a focus-visible class to the focused element, in situations in which the :focus-visible pseudo-selector should match.
https://github.com/WICG/focus-visible
Additional information
The text was updated successfully, but these errors were encountered: