-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[JIT] prefix as a function breaks some classes #5765
Comments
Thanks for your input and interest regarding this issue @Soviut. The issue is shown on the Tailwind Play link attached so I'm confident it's not only an issue with my codebase (I'm relying on @tailwindcss/postcss7-compat)
|
@quentinlagache Ah, I misunderstood. The following is NOT the desired output. I was focusing on the classes in the selector too much. |
Hey! Thank you for your bug report! I've been looking into this and wrote a more in-depth explanation here: #5829 |
Hey @RobinMalfait ! In the end, I get a better sense of why In my case I will handle it outside of tailwind to keep prefix free tailwind classes. Thanks for your awesome work 🙏 |
What version of Tailwind CSS are you using?
2.2.15
Reproduction URL
https://play.tailwindcss.com/GlwsJggWJP?file=config
Describe your issue
When using prefix as a function to apply prefix only on some classes, it seems that classes with one character base name like
m-2
,p-5
,w-full
and negative ones like-rotate-6
are not generated.Add
prefix (selector) { return ''; }
to tailwind config is breaking the output.The text was updated successfully, but these errors were encountered: