Variant for @media (hover: none) #2479
brandonpittman
started this conversation in
Ideas
Replies: 1 comment
-
Went ahead and solved this myself. https://github.com/brandonpittman/tailwindcss-plugin-fancy/tree/master/packages/future |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Never thought about this before, but you can use a media query to see if the browser can't hover.
This essentially allows you to check if a user is on a touch device—showing and hiding things based on if they have a pointer available to them. Something like a
hoverless:
variant (or some other name) could be super useful.💡 from @qcmatsuoka
Beta Was this translation helpful? Give feedback.
All reactions