Skip to content

Commit

Permalink
fix(material/select): fixed text color for selected options in multip…
Browse files Browse the repository at this point in the history
…le select (#30367)

* fixed text color for selected options in multiple select

* added change to comment
  • Loading branch information
AJJPostma authored Jan 27, 2025
1 parent eb8e998 commit 11f02ee
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/material/core/option/option.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,13 @@ $_side-padding: 16px;
}

&.mdc-list-item--selected:not(.mdc-list-item--disabled) {
.mdc-list-item__primary-text {
@include token-utils.create-token-slot(color, selected-state-label-text-color);
}

// We don't change the background in multiple mode since
// We don't change the background & text color in multiple mode since
// it has the checkbox to show the selected state.
&:not(.mat-mdc-option-multiple) {
@include token-utils.create-token-slot(background-color, selected-state-layer-color);
.mdc-list-item__primary-text {
@include token-utils.create-token-slot(color, selected-state-label-text-color);
}
}
}

Expand Down

0 comments on commit 11f02ee

Please sign in to comment.