@@ -25,33 +25,16 @@ $theme: $material;
2525
2626[part = ' start' ] {
2727 color : var-get ($theme , ' item-thumbnail-color' );
28+
29+ ::slotted (igc-avatar ) {
30+ --icon-color : #{var-get ($theme , ' item-thumbnail-color' )} ;
31+ }
2832}
2933
3034[part = ' end' ] {
3135 color : var-get ($theme , ' item-action-color' );
3236}
3337
34- :host ([selected ]) {
35- color : var-get ($theme , ' item-text-color-selected' );
36- background : var-get ($theme , ' item-background-selected' );
37-
38- [part = ' title' ] {
39- color : var-get ($theme , ' item-title-color-selected' );
40- }
41-
42- [part = ' subtitle' ] {
43- color : var-get ($theme , ' item-subtitle-color-selected' );
44- }
45-
46- [part = ' start' ] {
47- color : var-get ($theme , ' item-thumbnail-color-selected' );
48- }
49-
50- [part = ' end' ] {
51- color : var-get ($theme , ' item-action-color-selected' );
52- }
53- }
54-
5538:host (:hover ),
5639:host (:focus-within ) {
5740 background : var-get ($theme , ' item-background-hover' );
@@ -67,6 +50,10 @@ $theme: $material;
6750
6851 [part = ' start' ] {
6952 color : var-get ($theme , ' item-thumbnail-color-hover' );
53+
54+ ::slotted (igc-avatar ) {
55+ --icon-color : #{var-get ($theme , ' item-thumbnail-color-hover' )} ;
56+ }
7057 }
7158
7259 [part = ' end' ] {
@@ -88,9 +75,38 @@ $theme: $material;
8875
8976 [part = ' start' ] {
9077 color : var-get ($theme , ' item-thumbnail-color-active' );
78+
79+ ::slotted (igc-avatar ) {
80+ --icon-color : #{var-get ($theme , ' item-thumbnail-color-active' )} ;
81+ }
9182 }
9283
9384 [part = ' end' ] {
9485 color : var-get ($theme , ' item-action-color-active' );
9586 }
9687}
88+
89+ :host ([selected ]) {
90+ color : var-get ($theme , ' item-text-color-selected' );
91+ background : var-get ($theme , ' item-background-selected' );
92+
93+ [part = ' title' ] {
94+ color : var-get ($theme , ' item-title-color-selected' );
95+ }
96+
97+ [part = ' subtitle' ] {
98+ color : var-get ($theme , ' item-subtitle-color-selected' );
99+ }
100+
101+ [part = ' start' ] {
102+ color : var-get ($theme , ' item-thumbnail-color-selected' );
103+
104+ ::slotted (igc-avatar ) {
105+ --icon-color : #{var-get ($theme , ' item-thumbnail-color-selected' )} ;
106+ }
107+ }
108+
109+ [part = ' end' ] {
110+ color : var-get ($theme , ' item-action-color-selected' );
111+ }
112+ }
0 commit comments