Skip to content

Add more values for the width and height properties #41330

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

Open
2 tasks done
silverwing102 opened this issue Mar 28, 2025 · 0 comments · May be fixed by #41236
Open
2 tasks done

Add more values for the width and height properties #41330

silverwing102 opened this issue Mar 28, 2025 · 0 comments · May be fixed by #41236

Comments

@silverwing102
Copy link

Prerequisites

Proposal

I was looking at the sizing utilities and I thought it would be helpful to have new values for the width and height. These are using the min-content, max-content and fit-content values. So for example we can give them class names of "w-min", "w-max" and "w-fit" respectively for width and "h-min", "h-max" and "h-fit" for height.

I understand that this change could confuse users with the existing "mw-" classes or the other existing classes that set max or min height/width but nevertheless I feel it would be a useful addition

Motivation and context

Right now the sizing utilities are rather limited with only 4 possible percentage options. Using these three values can help customise elements easily without having to rely on CSS.

@mdo mdo added this to v6.0.0 Apr 8, 2025
@github-project-automation github-project-automation bot moved this to Inbox in v6.0.0 Apr 8, 2025
@mdo mdo linked a pull request Apr 8, 2025 that will close this issue
66 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Inbox
Development

Successfully merging a pull request may close this issue.

3 participants