Skip to content

Commit

Permalink
chore: add field-sizing to select and textarea (#535)
Browse files Browse the repository at this point in the history
* chore: add field-sizing to select and textarea

* Update src/extra/normalize.src.css

---------

Co-authored-by: Adam Argyle <[email protected]>
  • Loading branch information
kaf-lamed-beyt and argyleink authored Dec 23, 2024
1 parent 077a3a8 commit 7831a40
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/extra/normalize.src.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,20 @@
:where(select) {
padding-inline: var(--size-relative-4) 0;
padding-block: .75ch;
field-sizing: content;
}

:where(textarea, select, input:not([type="button"],[type="submit"],[type="reset"])) {
background-color: var(--surface-2);
border-radius: var(--radius-2);
}

:where(textarea) { resize: block }
:where(textarea) {
resize: block;
field-sizing: content;
min-inline-size: var(--size-content-1);
min-block-size: 2lh;
}

:where(input[type="checkbox"], input[type="radio"]) {
block-size: var(--size-3);
Expand Down

0 comments on commit 7831a40

Please sign in to comment.