-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[4.1.4]If I only use the text-xl in class name, seem the --tw-leading will be not defined #17704
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
I can confirm the same. |
I believe that is intended behavior. The CSS variable is there for composability with |
I see, if tw-leading is not defined, the line-height in text-2xl is actually quite invalid, and it will default to the line-height that comes with html, so why generate this invalid line-height? Is it a kind of redundancy? |
It shouldn't be invalid with default configuration. As per this Tailwind Play, it should be |
oh, I got it, thanks |
What version of Tailwind CSS are you using?
v4.1.4
What build tool (or framework if it abstracts the build tool) are you using?
ReactV18 webpackV5
What version of Node.js are you using?
v20.0.0
What browser are you using?
Chrome, Safari
What operating system are you using?
macOS
Describe your issue
The text was updated successfully, but these errors were encountered: