35
loading...
This website collects cookies to deliver better user experience
:focus-visible
is a pseudo-class that applies while an element matches the :focus
pseudo-class and determines vie heuristics that the focus should be made evident on the element.:focus
came from a click event or keyboard event and applies the styles accordingly. In most cases, that means that it won't apply the :focus
styles from a click event..logo-link:hover,
.logo-link:focus,
.initial-display {
.logo-text {
@apply translate-y-0;
}
.logo-type {
@apply opacity-100;
}
.logo-tagline {
@apply opacity-80;
}
}
-visible
to the end of the :focus
pseudo-class was all it took..logo-link:hover,
.logo-link:focus-visible,
.initial-display {
.logo-text {
@apply translate-y-0;
}
.logo-type {
@apply opacity-100;
}
.logo-tagline {
@apply opacity-80;
}
}
.blur()
and be as strong-handed as I needed to be to make it work.:focus-visible
and it immediately came rushing back.:focus-visible
, and that is that it doesn't have full browser support yet.