Skip to content

Commit 67e360c

Browse files
committed
feat: add textarea min-lines
1 parent 1e517a6 commit 67e360c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system/core/src/components/TextAreaCore.ts

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const textareaSizingStyles = css`
2222
& {
2323
field-sizing: content;
2424
resize: none;
25+
min-height: 2lh;
2526
}
2627
}
2728
`;
@@ -30,6 +31,7 @@ export const textareaWrapperStyles = css`
3031
&[data-content]:after {
3132
display: block;
3233
content: attr(data-content) ' ';
34+
min-height: 2lh;
3335
white-space: pre-wrap;
3436
visibility: hidden;
3537
pointer-events: none;
@@ -50,6 +52,7 @@ export const textareaWrapperStyles = css`
5052
}
5153
& > textarea {
5254
field-sizing: content;
55+
min-height: 2lh;
5356
}
5457
}
5558
`;

0 commit comments

Comments
 (0)