-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Using 0
as arbitrary value doesn't work for for some properties
#6227
Comments
I checked this out, it seems it is working when you use text-[0px] or border-[0px], it seems to need a unit. Hope it helps for now. |
Yeah, I figured out, that it works with units set / as workaround. Probably this still should work / be consistent with other properties (e.g. |
Yeah, it seems that setting the unit works with all utilities but just "0" works with only some. |
Think we can probably support this, should just be a matter of adding a check for https://github.com/tailwindlabs/tailwindcss/blob/master/src/util/dataTypes.js#L80-L85 Happy to take a look at a PR if someone wants to give it a shot and add some tests 👍🏻 |
Hey! Thank you for your bug report! This should be fixed, and will be available in Tailwind v3. |
What version of Tailwind CSS are you using?
v2.2.19
Reproduction URL
https://play.tailwindcss.com/eOQOc2klvH
Describe your issue
Trying to apply custom value as
0
for border width Tailwind JIT doesn't generate the selector. E.g. usingborder-[0]
does nothing, even thoughborder-width: 0
is valid CSS expression. Same for font size withtext-[0]
(font-size: 0
is valid CSS). Haven't checked other properties.This doesn't happen and when applying
w-[0]
- selector / style is applied as expected.The text was updated successfully, but these errors were encountered: