Skip to content

Commit

Permalink
fix(material/form-field): container height in lower densities (#28546)
Browse files Browse the repository at this point in the history
* The 12px padding being applied to the mat-icon was preventing
  the form-field container height from condensing in lower densities.
  • Loading branch information
wagnermaciel authored and mmalerba committed Feb 9, 2024
1 parent 47c5592 commit 0edc476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/form-field/form-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ $_icon-prefix-infix-padding: 4px;
z-index: 1;

& > .mat-icon {
padding: 12px;
padding: 0 12px;
// It's common for apps to apply `box-sizing: border-box`
// globally which will break the alignment.
box-sizing: content-box;
Expand Down

0 comments on commit 0edc476

Please sign in to comment.