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