File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 63
63
width : 100% ;
64
64
}
65
65
66
- // The MDC text-field should stretch to the width of the host `<mat-form-field>` element.
67
- // This allows developers to control the width without needing custom CSS overrides.
68
66
.mat-mdc-text-field-wrapper {
67
+ // The MDC text-field should stretch to the width of the host `<mat-form-field>` element.
68
+ // This allows developers to control the width without needing custom CSS overrides.
69
69
width : 100% ;
70
70
}
71
71
72
- // Vertically center icons.
73
72
.mat-mdc-form-field-icon-prefix ,
74
73
.mat-mdc-form-field-icon-suffix {
74
+ // Vertically center icons.
75
75
align-self : center ;
76
76
// The line-height can cause the prefix/suffix container to be taller than the actual icons,
77
77
// breaking the vertical centering. To prevent this we set the line-height to 0.
78
78
line-height : 0 ;
79
+ // MDC applies `pointer-events: none` to the `.mdc-text-field--disabled`. This breaks clicking on
80
+ // prefix and suffix buttons, so we override `pointer-events` to always allow clicking.
81
+ pointer-events : auto ;
79
82
}
80
83
81
84
// The prefix/suffix needs a little extra padding between the icon and the infix. Because we need to
You can’t perform that action at this time.
0 commit comments