File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 23
23
$underline-color-warn : mat-color ($warn );
24
24
$underline-focused-color : mat-color ($primary );
25
25
26
- // Define the width here so that it is easier for users to override with one css class worth
27
- // of specificity.
28
- .mat-form-field {
29
- width : 200px ;
30
- }
31
-
32
26
.mat-form-field-placeholder {
33
27
color : $placeholder-color ;
34
28
}
Original file line number Diff line number Diff line change 6
6
$mat-form-field-hint-min-space : 1em !default ;
7
7
// The height of the underline.
8
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 ;
9
13
10
14
11
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
}
64
69
65
70
// Used to hide the placeholder overflow on IE, since IE doesn't take transform into account when
You can’t perform that action at this time.
0 commit comments