Skip to content

Commit fbd95a9

Browse files
committed
fix select expanding to 100%
1 parent cc2e9f1 commit fbd95a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/form-field/form-field.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
$mat-form-field-hint-min-space: 1em !default;
77
// The height of the underline.
88
$mat-form-field-underline-height: 1px !default;
9+
// Infix stretches to fit the container, but naturally wants to be this wide. We set this in order
10+
// to have a a consistent natural size for the various types of controls that can go in a form
11+
// field.
12+
$mat-form-field-default-infix-width: 180px !default;
913

1014

1115
.mat-form-field {
@@ -60,6 +64,7 @@ $mat-form-field-underline-height: 1px !default;
6064
position: relative;
6165
flex: auto;
6266
min-width: 0;
67+
width: $mat-form-field-default-infix-width;
6368
}
6469

6570
// Used to hide the placeholder overflow on IE, since IE doesn't take transform into account when

0 commit comments

Comments
 (0)