Skip to content
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

Svelte conditional classes with class: directive doesnt get compiled in v4 #15259

Open
JuchokJuk opened this issue Dec 1, 2024 · 1 comment

Comments

@JuchokJuk
Copy link

I found that v4 beta doesnt compile classnames in svelte class: directive, but v3 does.

Im using v4.0.0-beta.4 with vite (sveltekit), issue also presist in Tailwind Play https://play.tailwindcss.com/SqaTjcf7MZ

@philipp-spiess
Copy link
Member

@JuchokJuk Hey! This works right now for me when i try it with the @tailwindcss/vite extension. Do you have a project where this doesn't work or only the Tailwind Play? Play doesn't support Svelte at all, it only scans HTML class fields.

Screenshot 2024-12-02 at 12 53 17

Support for that was added a while ago but it's possible there's a bug in the implementation: #13274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants