Skip to content

Commit 4d9fc3b

Browse files
authored
Merge pull request #2553 from system-ui/lachlanjc-patch-2
components: [Textarea] Add field-sizing: content
2 parents a43fca7 + 822161f commit 4d9fc3b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/components/src/Textarea.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const Textarea: ForwardRef<HTMLTextAreaElement, TextareaProps> =
3535
borderRadius: 4,
3636
color: 'inherit',
3737
bg: 'transparent',
38+
fieldSizing: 'content',
3839
},
3940
})}
4041
/>

packages/components/test/__snapshots__/index.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,7 @@ exports[`Textarea renders 1`] = `
15151515
border-radius: 4px;
15161516
color: inherit;
15171517
background-color: transparent;
1518+
field-sizing: content;
15181519
}
15191520
15201521
<textarea

0 commit comments

Comments
 (0)