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 2323 $underline-color-warn : mat-color ($warn );
2424 $underline-focused-color : mat-color ($primary );
2525
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-
3226 .mat-form-field-placeholder {
3327 color : $placeholder-color ;
3428 }
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments