From 2ec618551d96f0fe57bf4b891a1242051be009dc Mon Sep 17 00:00:00 2001 From: Annie Wang Date: Tue, 2 Mar 2021 13:48:44 -0800 Subject: [PATCH] fix(material-experimental/mdc-form-field): fix height for form field with textarea --- src/material-experimental/mdc-form-field/form-field.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/material-experimental/mdc-form-field/form-field.scss b/src/material-experimental/mdc-form-field/form-field.scss index 8cab9b93a80c..cd66b0823a22 100644 --- a/src/material-experimental/mdc-form-field/form-field.scss +++ b/src/material-experimental/mdc-form-field/form-field.scss @@ -61,6 +61,9 @@ // that the projected form-field control and content can stretch as needed, but we also // apply a default infix width to make the form-field's look natural. .mat-mdc-form-field-infix { + // Prevent extra height from being added around the textarea, which throws off the overall + // height of the form-field + line-height: 0; flex: auto; min-width: 0; width: form-field-sizing.$mat-form-field-default-infix-width;