Skip to content

Commit 927fdea

Browse files
committed
fix(material/select): m3 selected option background color
1 parent 9a6b106 commit 927fdea

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/material-experimental/theming/_custom-tokens.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,7 @@
993993
@return (mat.private-merge-all(
994994
_generate-typography-tokens($systems, trigger-text, body-large),
995995
(
996+
list-item-selected-container-color: map.get($systems, md-sys-color, secondary-container),
996997
panel-background-color: map.get($systems, md-sys-color, surface-container),
997998
enabled-trigger-text-color: map.get($systems, md-sys-color, on-surface),
998999
disabled-trigger-text-color: mat.private-safe-color-change(

src/material/core/tokens/m2/mat/_select.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ $prefix: (mat, select);
1717
$on-surface: if($is-dark, #fff, #000);
1818

1919
@return (
20+
list-item-selected-container-color: rgba($on-surface, if($is-dark, 0.08, 0.04)),
2021
panel-background-color: inspection.get-theme-color($theme, background, card),
2122
enabled-trigger-text-color: rgba($on-surface, 0.87),
2223
disabled-trigger-text-color: rgba($on-surface, 0.38),

src/material/select/select.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ div.mat-mdc-select-panel {
166166

167167
.mat-mdc-option {
168168
--mdc-list-list-item-container-color: var(--mat-select-panel-background-color);
169+
--mat-option-selected-state-layer-color: var(--mat-select-list-item-selected-container-color);
169170
}
170171
}
171172

0 commit comments

Comments
 (0)