You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support @media(hover) (needed for tailwind hover:) #252
Adding a data point on impact: Tailwind v4 wraps every hover: variant in @media (hover: hover), so without the device claiming hover capability all hover styling in a Tailwind app is dropped (60+ rules in the app where we hit this) — not just explicit media queries. This makes #252 the single highest-impact styling gap for Tailwind-based Dioxus Native apps.
Activity
[-]Support class like <code>hover:bg-amber-500</code>[/-][+]Support class like `hover:bg-amber-500`[/+]nicoburns commentedon Sep 1, 2025
I think it's
@media(hover: hover)we don't support. Everything else there ought to work.[-]Support class like `hover:bg-amber-500`[/-][+]Support `@media(hover)` (needed for tailwind `hover:`)[/+]liaoliao666 commentedon Sep 1, 2025
but I changed the CSS to the following and it worked
nicoburns commentedon Sep 1, 2025
Hmm... I guess it's the classname escaping then
nicoburns commentedon Sep 1, 2025
Actually, I am not seeing the same as you.
This works for me:
And this does not:
liaoliao666 commentedon Sep 1, 2025
After I tried it again, you were right.
UMCEKO commentedon Jun 12, 2026
Adding a data point on impact: Tailwind v4 wraps every
hover:variant in@media (hover: hover), so without the device claiming hover capability all hover styling in a Tailwind app is dropped (60+ rules in the app where we hit this) — not just explicit media queries. This makes #252 the single highest-impact styling gap for Tailwind-based Dioxus Native apps.nicoburns commentedon Jul 3, 2026
This should be fixed on
mainby today's upgrade to Stylo v0.19