-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[v4] Slim template regression - 2xl variant classes not extracted #16790
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
Comments
Hey! Thanks for the repro. We're working on some larger scale changes to our scanner logic and have made sure to include your test case there as well 👍 We'll update you when we we're closer to shipping these fixes. |
Hey! This should be fixed and will be available in the next release. You can already try it if you want using the insiders version:
|
Hi all. Not sure in which version this was fixed but I'm still getting the issue in Thanks |
@vnphanquang I am not sure I follow: the playground seems to work correctly for me under 4.0.14 (see the slightly amended version here), besides, this issue was never about HTML but rather about Slim, specifically. Also, a few days ago, I was able to confirm that in our Slim templates the new Tailwind versions recognize the |
@borama hmmm thanks for the input. Apologies, false report on my part. It is indeed working as intended. The character escape threw me off and I didn't see the added space. Please ignore my previous message. Thanks again! |
There is a regression in v4 in Slim templates - the 2xl variant classes are not extracted from source files.
What version of Tailwind CSS are you using?
4.0.8
What build tool (or framework if it abstracts the build tool) are you using?
tailwindcss CLI
What version of Node.js are you using?
n/a
What browser are you using?
n/a
What operating system are you using?
Linux
Reproduction URL
https://github.com/borama/tailwind4-slim-issue
Describe your issue
There is a regression similar to #14005 but present in Tailwind v4 (4.0.8). The
2xl:
variant classes are not extracted from sources by the Tailwind CLI.Sample project:
1. This works OK in v3 (tailwindcss v3.4.17):
2. The same Slim template does NOT work in v4:
I.e. not only it does not extract the
2xl:bg-red-100
class, it ignores all classes in the Slim template on the same line.3. When the
2xl:
class is the first on the line, it works againInterestingly, when I swap the order of the classes, making the
2xl:
class be the first on the line, it starts working:The text was updated successfully, but these errors were encountered: