Skip to content

Commit

Permalink
fix(material/select): set pointer cursor on entire form field (#27678)
Browse files Browse the repository at this point in the history
Fixes that only some parts of the form field had `cursor: pointer` when a `mat-select` is projected.

Fixes #27655.
  • Loading branch information
crisbeto authored Aug 18, 2023
1 parent 503cb2f commit 373a0cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/material/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ div.mat-mdc-select-panel {
// for select. The select specific styles are not present as they don't use their text field as a
// container. Below are the styles to account for the select arrow icon at the end.
.mat-mdc-form-field-type-mat-select {
&:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper {
cursor: pointer;
}

&.mat-form-field-appearance-fill {
.mat-mdc-floating-label {
max-width: calc(100% - #{$mat-select-placeholder-arrow-space});
Expand Down

0 comments on commit 373a0cb

Please sign in to comment.