Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 2b45215

Browse files
Googlernshahan
authored andcommitted
Add mixin to allow updating the color of the selected item.
PiperOrigin-RevId: 209690137
1 parent abcb918 commit 2b45215

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/material_select/_mixins.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@
8181
}
8282
}
8383

84+
/// Sets the color of the "selected" item.
85+
@mixin material-select-selected-item-color($color) {
86+
::ng-deep material-select-item.selected {
87+
color: $color;
88+
}
89+
}
90+
8491
/// Sets the color of the "disabled" item.
8592
@mixin material-select-disabled-color($color) {
8693
::ng-deep material-select-dropdown-item.item.disabled {

0 commit comments

Comments
 (0)