Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(material/select): fixed text color for selected options in multiple select #30367

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading