We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2e9f1 commit fbd95a9Copy full SHA for fbd95a9
src/lib/form-field/form-field.scss
@@ -6,6 +6,10 @@
6
$mat-form-field-hint-min-space: 1em !default;
7
// The height of the underline.
8
$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;
13
14
15
.mat-form-field {
@@ -60,6 +64,7 @@ $mat-form-field-underline-height: 1px !default;
60
64
position: relative;
61
65
flex: auto;
62
66
min-width: 0;
67
+ width: $mat-form-field-default-infix-width;
63
68
}
69
70
// Used to hide the placeholder overflow on IE, since IE doesn't take transform into account when
0 commit comments