Skip to content

Commit aa3bb56

Browse files
committed
fix(material/select): ensure proper highlighting on selection
1 parent 878700d commit aa3bb56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/core/option/option.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $_side-padding: 16px;
4343
&.mdc-list-item--selected:not(.mdc-list-item--disabled) {
4444
// We don't change the background & text color in multiple mode since
4545
// it has the checkbox to show the selected state.
46-
&:not(.mat-mdc-option-multiple) {
46+
&:not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover) {
4747
background-color: token-utils.slot(option-selected-state-layer-color, $fallbacks);
4848
.mdc-list-item__primary-text {
4949
color: token-utils.slot(option-selected-state-label-text-color, $fallbacks);

0 commit comments

Comments
 (0)