Commit cd37bd4
authored
fix(ui): add min-height and padding to textarea field (#16442)
Fixes textarea field shrinking below a minimum height when content is
typed and adds proper padding.
### Changes
- Adds `padding: var(--spacer-2)` to textarea for consistent 8px padding
(matching Figma design)
- Removes the `:not(:empty)` selector that was overriding min-height
with a rows-based calculation that could be smaller than the base
min-height or invalid when `--rows` wasn't set
### Before
Textarea would shrink to content size as you typed, potentially becoming
very small.
### After
Textarea maintains a minimum height of `3.75rem` and grows with content
via `field-sizing: content`.1 parent da5dd8a commit cd37bd4
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
| |||
0 commit comments