Skip to content
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
7 changes: 4 additions & 3 deletions src/material/core/option/option.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ $_side-padding: 16px;
}

&.mdc-list-item--selected:not(.mdc-list-item--disabled) {
// 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) {
// Overide selected colors for non disabled list items except:
// - when active, focused, or hovered so still indicates that state to the user.
// - multiple mode since it already has the checkbox to show the selected state.
&:not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover) {
background-color: token-utils.slot(option-selected-state-layer-color, $fallbacks);
.mdc-list-item__primary-text {
color: token-utils.slot(option-selected-state-label-text-color, $fallbacks);
Expand Down
Loading