Skip to content

Commit 62d2e37

Browse files
authored
fix(material-experimental/mdc-form-field): allow shrinking in grid/flex layouts (#21820)
1 parent 6eff938 commit 62d2e37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/material-experimental/mdc-form-field/form-field.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@
2626
// and the subscript wrapper.
2727
.mat-mdc-form-field {
2828
display: inline-flex;
29-
// this container contains the text-field and the subscript. The subscript
29+
// This container contains the text-field and the subscript. The subscript
3030
// should be displayed below the text-field. Hence the column direction.
3131
flex-direction: column;
32+
// This allows the form-field to shrink down when used inside flex or grid layouts.
33+
min-width: 0;
3234
}
3335

3436
// Container that contains the prefixes, infix and suffixes. These elements should

0 commit comments

Comments
 (0)