Skip to content

Commit c2552db

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/material/core/option/option.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ $_side-padding: 16px;
4949
color: token-utils.slot(option-selected-state-label-text-color, $fallbacks);
5050
}
5151
}
52+
53+
&:hover.mdc-list-item {
54+
background-color: token-utils.slot(option-hover-state-layer-color, $fallbacks);
55+
}
56+
57+
&:focus.mdc-list-item,
58+
&.mat-mdc-option-active.mdc-list-item {
59+
background-color: token-utils.slot(option-focus-state-layer-color, $fallbacks);
60+
}
5261
}
5362

5463
.mat-pseudo-checkbox {

0 commit comments

Comments
 (0)