Skip to content
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

Add field-sizing utilities #14469

Merged
merged 3 commits into from
Sep 20, 2024
Merged

Add field-sizing utilities #14469

merged 3 commits into from
Sep 20, 2024

Conversation

thecrypticace
Copy link
Contributor

This PR adds support for the field-sizing property which can be used to fit a text inputs, file inputs, textareas, and selects to the size of the text rather than some implicit default width.

@adamwathan
Copy link
Member

Nice 😎 Where should we stick this in the property-order.ts file do you think? 🤔

@thecrypticace
Copy link
Contributor Author

I was wondering if we needed to. What about after aspect-ratio? I put it there in the utilities file because it affects the size of some elements but isn't itself a way to set a specific size.

@adamwathan
Copy link
Member

Let's do it right before the aspect-ratio since aspect-ratio, width, and height all take precedence in the browser if you define them.

@thecrypticace thecrypticace force-pushed the feat/v4-field-sizing-utilities branch from dfbb5d5 to 0c92591 Compare September 20, 2024 14:44
@adamwathan adamwathan force-pushed the feat/v4-field-sizing-utilities branch from 5036a84 to 6c95e39 Compare September 20, 2024 14:50
@adamwathan adamwathan merged commit fe2610e into next Sep 20, 2024
3 checks passed
@adamwathan adamwathan deleted the feat/v4-field-sizing-utilities branch September 20, 2024 14:50
adamwathan added a commit that referenced this pull request Sep 20, 2024
This PR adds support for the
[`field-sizing`](https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing)
property which can be used to fit a text inputs, file inputs, textareas,
and selects to the size of the text rather than some implicit default
width.

---------

Co-authored-by: Adam Wathan <[email protected]>
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 this pull request may close these issues.

2 participants