Skip to content

min-h-none and min-w-none do not set correct styles #15846

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

Closed
minimusubi opened this issue Jan 25, 2025 · 0 comments · Fixed by #15845
Closed

min-h-none and min-w-none do not set correct styles #15846

minimusubi opened this issue Jan 25, 2025 · 0 comments · Fixed by #15845

Comments

@minimusubi
Copy link

What version of Tailwind CSS are you using?

v4.0.0

What build tool (or framework if it abstracts the build tool) are you using?

Nuxt.js v3.15.3

What version of Node.js are you using?

v20.12.2

What browser are you using?

Chrome

What operating system are you using?

Windows 11

Reproduction URL

These appear to be the lines responsible for adding the min-w-none and min-h-none classes.

staticUtility(`min-w-none`, [['min-width', 'none']])
staticUtility(`max-w-none`, [['max-width', 'none']])
staticUtility(`min-h-none`, [['min-height', 'none']])
staticUtility(`max-h-none`, [['max-height', 'none']])

Describe your issue

There are utility classes for min-width: none (min-w-none) and min-height: none (min-h-none). However, none is not a valid keyword for those styles.

none is valid for max-height and [max-width](https://developer.mozilla.org/en-US/docs/Web/CSS/max-width#syntax). none` is not valid for min-height and min-width.

Alternatives
Both min-w-0 and min-w-[0] can be used to set min-width to zero, and the same goes for height.

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

Successfully merging a pull request may close this issue.

1 participant