Skip to content

Commit 766c9ea

Browse files
committed
fix(material-experimental/mdc-form-field): fix height for form field with textarea (#22089)
(cherry picked from commit a219a4a)
1 parent afdec6f commit 766c9ea

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
@@ -50,6 +50,9 @@
5050
// that the projected form-field control and content can stretch as needed, but we also
5151
// apply a default infix width to make the form-field's look natural.
5252
.mat-mdc-form-field-infix {
53+
// Prevent extra height from being added around the textarea, which throws off the overall
54+
// height of the form-field
55+
line-height: 0;
5356
flex: auto;
5457
min-width: 0;
5558
width: $mat-form-field-default-infix-width;

0 commit comments

Comments
 (0)