Skip to content

Commit 1438747

Browse files
committed
fix(material/select): set pointer cursor on entire form field (#27678)
Fixes that only some parts of the form field had `cursor: pointer` when a `mat-select` is projected. Fixes #27655. (cherry picked from commit 373a0cb)
1 parent 8d960a4 commit 1438747

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material/select/select.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ div.mat-mdc-select-panel {
197197
// for select. The select specific styles are not present as they don't use their text field as a
198198
// container. Below are the styles to account for the select arrow icon at the end.
199199
.mat-mdc-form-field-type-mat-select {
200+
&:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper {
201+
cursor: pointer;
202+
}
203+
200204
&.mat-form-field-appearance-fill {
201205
.mat-mdc-floating-label {
202206
max-width: calc(100% - #{$mat-select-placeholder-arrow-space});

0 commit comments

Comments
 (0)