-
Notifications
You must be signed in to change notification settings - Fork 37
Tailwind CSSv3.0.23+ doesn't properly support variants #18
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
You gotta provide a reproduction man otherwise I have no idea what you are trying to tell me. Line clamp utilities do support variants in Tailwind v3, try |
Here's a demo where you can see Tailwind v3.0.24 + the line-clamp plugin with variants working out of the box with no configuration necessary: https://play.tailwindcss.com/V25ihYtsG6 So what is the actual problem you have in your project that isn't working? Happy to help with that but you have to tell me what it is you know? ❤️ |
Going to close this, feel free to open a discussion if you need help with something specific though, always happy to help. |
@adamwathan see https://play.tailwindcss.com/91ENbypV2a
is the offending bit |
Hey thanks for the extra detail! So the issue isn't actually anything to do with variants, it's that the latest release of the line-clamp plugin doesn't support arbitrary values: https://play.tailwindcss.com/91ENbypV2a The good news is support has been added for this: ...it's just that we haven't cut a release. Made a note to cut one tomorrow though! |
What version of @tailwindcss/line-clamp are you using?
v0.3.1
What version of Node.js are you using?
v16.13.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction repository
N/A
Describe your issue
Cont of #16
@adamwathan the issue is that varaints aren't working (aren't generated) with the above versions (with Tailwind CSSv3.0.23) I mentioned. Tailwind renamed the
variants
field toaddVariant
, which is why the existingvariant
field won't work in getting the the variant CSS code generated.The text was updated successfully, but these errors were encountered: