Solving Sticky Hover States with @media (hover: hover)

Solving Sticky Hover States with @media (hover: hover)

Mezo Istvan does a good job of covering the problem and a solution to it in a blog post on Medium. If you tap on something that has a :hover state but you don't leave the page then, on a mobile device, there is a chance that :hover state 'sticks.' You'll see this with stuff like jump-links used as tabs or buttons that trigger on-page functionality. The post Solving Sticky Hover States with @media...

Read more


<< View all articles



Intelligence delivered from Dot Command Center
Original article from CSS-Tricks updated 2/18/2020