Skip to content

Commit

Permalink
fix(material-experimental/mdc-form-field): fix height for form field …
Browse files Browse the repository at this point in the history
…with textarea (#22089)
  • Loading branch information
annieyw committed Mar 9, 2021
1 parent 0093105 commit a219a4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/material-experimental/mdc-form-field/form-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a219a4a

Please sign in to comment.