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
Sometimes we want to distinguish between a keyboard focus and a mouse focus. For example, when the element is focused by a mouse click, we want to hide the outline. It would be great if this can be done by css rather than javascript.
Something like :mouse-focus or :keyboard-focus would help.
The text was updated successfully, but these errors were encountered:
Yeah, :focus-visible is what you want here - it's a subset of :focus that matches the actual browser algorithm for when to show the focus ring and when to not.
Hello!
the focus pseudo
Sometimes we want to distinguish between a keyboard focus and a mouse focus. For example, when the element is focused by a mouse click, we want to hide the outline. It would be great if this can be done by css rather than javascript.
Something like
:mouse-focus
or:keyboard-focus
would help.The text was updated successfully, but these errors were encountered: