Skip to content

Commit 4340c6d

Browse files
committed
fix
1 parent f953e89 commit 4340c6d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/material/core/option/option.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
@use '../style/layout-common';
77

88
$fallbacks: m3-option.get-tokens();
9-
$list-fallbacks: m3-list.get-tokens();
109

1110
$_side-padding: 16px;
1211

@@ -41,11 +40,6 @@ $_side-padding: 16px;
4140
outline: 0;
4241
}
4342

44-
&.mat-mdc-option-active.mdc-list-item::before {
45-
background-color: token-utils.slot(list-list-item-focus-state-layer-color, $list-fallbacks);
46-
opacity: token-utils.slot(list-list-item-focus-state-layer-opacity, $list-fallbacks);
47-
}
48-
4943
&.mdc-list-item--selected:not(.mdc-list-item--disabled) {
5044
// We don't change the background & text color in multiple mode since
5145
// it has the checkbox to show the selected state.
@@ -55,6 +49,12 @@ $_side-padding: 16px;
5549
color: token-utils.slot(option-selected-state-label-text-color, $fallbacks);
5650
}
5751
}
52+
53+
&:focus.mdc-list-item,
54+
&:hover.mdc-list-item,
55+
&.mat-mdc-option-active.mdc-list-item {
56+
background-color: token-utils.slot(option-focus-state-layer-color, $fallbacks);
57+
}
5858
}
5959

6060
.mat-pseudo-checkbox {

0 commit comments

Comments
 (0)