Skip to content

Commit 2ec6185

Browse files
committed
fix(material-experimental/mdc-form-field): fix height for form field with textarea
1 parent 7006b48 commit 2ec6185

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/material-experimental/mdc-form-field/form-field.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
// that the projected form-field control and content can stretch as needed, but we also
6262
// apply a default infix width to make the form-field's look natural.
6363
.mat-mdc-form-field-infix {
64+
// Prevent extra height from being added around the textarea, which throws off the overall
65+
// height of the form-field
66+
line-height: 0;
6467
flex: auto;
6568
min-width: 0;
6669
width: form-field-sizing.$mat-form-field-default-infix-width;

0 commit comments

Comments
 (0)