-
Notifications
You must be signed in to change notification settings - Fork 405
Tailwind CSS bug repro #1748
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
Tailwind CSS bug repro #1748
Conversation
|
✅ Deploy Preview for solid-start-landing-page ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
@DaniGuardiola I believe this issue is solved by #1787 Let us know if you think it isn't. For now I'm closing this :) |
|
@atilafassina it is not fixed. This happens independently of whether vite or postcss is used. |
DO NOT MERGE, this is a bug repro.
Related issue: #1749
This branch reproduces a bug that causes the css output of Tailwind CSS classes that contain the
&character to transform it into&, which breaks it. For example, a class using a "dark theme" variant like this:This is actually outputted like this:
The effect is that the browser cannot parse the contents of the selector, so that class doesn't work and the color is not applied.
How to run repro
pnpm iexamples/with-tailwindcsspnpm devsrc/routes/index.tsxfor the code.src/app.css