Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add :hover media query back #41227

Open
2 tasks done
maxshearer opened this issue Feb 14, 2025 · 0 comments
Open
2 tasks done

Add :hover media query back #41227

maxshearer opened this issue Feb 14, 2025 · 0 comments

Comments

@maxshearer
Copy link

Prerequisites

Proposal

Back in 2018/v4 a decision was made in #25270 to deprecate a hover media query due to the relatively low browser support and as such requirement of a shim to make it work.

Now the hover media query is widely supported I propose that the $enable-hover-media-query flag is added back in.

Motivation and context

To quote the original v4 docs explaining the flag:

While :hover isn’t possible on most touch devices, iOS emulates this behavior, resulting in “sticky” hover styles that persist after tapping one element. These hover styles are only removed when users tap another element. This behavior is considered largely undesirable and appears to not be an issue on Android or Windows devices.

For better or for worse this is still an issue in iOS and it would be useful to have the option to safely alleviate it.

I'm more than happy to submit a PR if it feels like there's appetite to go ahead implementing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants