Skip to content

Add more values for the width and height properties #41330

Open
@silverwing102

Description

@silverwing102

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions