File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/material-experimental/mdc-form-field Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 25
25
// not work for us since we support arbitrary form field controls which don't necessarily
26
26
// use an `input` element. We organize the vertical spacing on the infix container.
27
27
.mdc-text-field--no-label :not (.mdc-text-field--textarea )
28
- .mat-mdc-form-field-control.mdc-text-field__input ,
28
+ .mat-mdc-form-field-control.mdc-text-field__input ,
29
29
.mat-mdc-text-field-wrapper .mat-mdc-form-field-control {
30
30
height : auto ;
31
31
}
32
32
33
+ // Color inputs are a special case, because setting their height to
34
+ // `auto` will collapse them. The height value is an arbitrary number
35
+ // which was extracted from the user agent styles of Chrome and Firefox.
36
+ .mat-mdc-text-field-wrapper .mat-mdc-form-field-control.mdc-text-field__input [type = ' color' ] {
37
+ height : 23px ;
38
+ }
39
+
33
40
// Root element of the mdc-text-field. As explained in the height overwrites above, MDC
34
41
// sets a default height on the text-field root element. This is not desired since we
35
42
// want the element to be able to expand as needed.
You can’t perform that action at this time.
0 commit comments