From 766c9ea0dff389c08f49b703ed52706aa001abf1 Mon Sep 17 00:00:00 2001 From: Annie Wang Date: Tue, 9 Mar 2021 06:39:04 -0800 Subject: [PATCH] fix(material-experimental/mdc-form-field): fix height for form field with textarea (#22089) (cherry picked from commit a219a4aaca878d70fb4a0954c60112ef952ba1ed) --- 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 aad5343ae7d2..fd8342a8edea 100644 --- a/src/material-experimental/mdc-form-field/form-field.scss +++ b/src/material-experimental/mdc-form-field/form-field.scss @@ -50,6 +50,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: $mat-form-field-default-infix-width;