Open theetrain opened 2 weeks ago
Given this element style:
main-container:is(:hover, :focus) .tooltip { opacity: 1; }
Writing a story that activates hover or focus styles do not apply.
hover
focus
<Story name="Tooltip Component Hover" parameters={{ pseudo: { hover: true } }} />
Avoid using :is() and :where() when it involves :hover, :focus, and other desirable pseudo states.
:is()
:where()
:hover
:focus
-main-container:is(:hover, :focus) .tooltip { +main-container:hover .tooltip, +main-container:focus .tooltip, { opacity: 1; }
Possibly relates to #99, #88, and other tickets that relate to pseudo states not applying.
Problem
Given this element style:
Writing a story that activates
hover
orfocus
styles do not apply.Workaround
Avoid using
:is()
and:where()
when it involves:hover
,:focus
, and other desirable pseudo states.Possibly relates to #99, #88, and other tickets that relate to pseudo states not applying.