Skip to content

Commit b3c9579

Browse files
authored
fix(material-experimental/mdc-form-field): incorrect alignment with border-box alignment (#24222)
1 parent 0436aa6 commit b3c9579

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
@@ -87,6 +87,9 @@
8787
.mat-mdc-form-field-icon-suffix {
8888
& > .mat-icon {
8989
padding: 12px;
90+
// It's common for apps to apply `box-sizing: border-box`
91+
// globally which will break the alignment.
92+
box-sizing: content-box;
9093
}
9194
}
9295

0 commit comments

Comments
 (0)