Skip to content

Commit 11f02ee

Browse files
authored
fix(material/select): fixed text color for selected options in multiple select (#30367)
* fixed text color for selected options in multiple select * added change to comment
1 parent eb8e998 commit 11f02ee

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/material/core/option/option.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,13 @@ $_side-padding: 16px;
4242
}
4343

4444
&.mdc-list-item--selected:not(.mdc-list-item--disabled) {
45-
.mdc-list-item__primary-text {
46-
@include token-utils.create-token-slot(color, selected-state-label-text-color);
47-
}
48-
49-
// We don't change the background in multiple mode since
45+
// We don't change the background & text color in multiple mode since
5046
// it has the checkbox to show the selected state.
5147
&:not(.mat-mdc-option-multiple) {
5248
@include token-utils.create-token-slot(background-color, selected-state-layer-color);
49+
.mdc-list-item__primary-text {
50+
@include token-utils.create-token-slot(color, selected-state-label-text-color);
51+
}
5352
}
5453
}
5554

0 commit comments

Comments
 (0)