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
Open the reproduction link, note that the class top(12 md:0) doesn't work as expected.
md:top-0 should take priority of top-12 but it doesn't.
Severity
serious, but I can work around it
System Info
## Browsers:
- Chrome: 112.0.5615.121
Additional Information
I have encountered this issue for several times and it's really hard to reproduce. Sometimes it works after I remove or change some of the irrelevant classes. The same happens here, it will work if I remove the injectGlobal.
The text was updated successfully, but these errors were encountered:
Had this happening to me as well when i tried to override a color from another class conditionally (input validation), had to end up applying the color as inline style when the state changed. Since your problem is related to media queries, you can't work around it like I could
I'm experiencing much the same thing. The class order seems to be dependent on unrelated classes:
// Generated CSS has `.sm\:hidden` before `.flex`<navclass="group relative flex items-center text-lg sm:hidden">
But adding a seemingly unrelated class to the end flips the order:
// Generated CSS has `.flex` before `.sm\:hidden`<navclass="group relative flex items-center text-lg sm:hidden bg-red-500">
I've failed to reproduce this in the playground, where the classes are generated in the correct order. It seems to be highly dependent on the classes of other unrelated elements.
Reproduction
https://twind.run/forum-taper-stir
Describe the bug
Open the reproduction link, note that the class
top(12 md:0)
doesn't work as expected.md:top-0
should take priority oftop-12
but it doesn't.Severity
serious, but I can work around it
System Info
## Browsers: - Chrome: 112.0.5615.121
Additional Information
I have encountered this issue for several times and it's really hard to reproduce. Sometimes it works after I remove or change some of the irrelevant classes. The same happens here, it will work if I remove the
injectGlobal
.The text was updated successfully, but these errors were encountered: