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.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed