Skip to content

Commit 773633b

Browse files
committed
fix(list): style component using sass theme
1 parent fe886d9 commit 773633b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/components/list/themes/shared/item/list-item.common.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ $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'] {
@@ -45,6 +49,10 @@ $theme: $material;
4549

4650
[part='start'] {
4751
color: var-get($theme, 'item-thumbnail-color-selected');
52+
53+
::slotted(igc-avatar) {
54+
--icon-color: #{var-get($theme, 'item-thumbnail-color-selected')};
55+
}
4856
}
4957

5058
[part='end'] {
@@ -67,6 +75,10 @@ $theme: $material;
6775

6876
[part='start'] {
6977
color: var-get($theme, 'item-thumbnail-color-hover');
78+
79+
::slotted(igc-avatar) {
80+
--icon-color: #{var-get($theme, 'item-thumbnail-color-hover')};
81+
}
7082
}
7183

7284
[part='end'] {
@@ -88,6 +100,10 @@ $theme: $material;
88100

89101
[part='start'] {
90102
color: var-get($theme, 'item-thumbnail-color-active');
103+
104+
::slotted(igc-avatar) {
105+
--icon-color: #{var-get($theme, 'item-thumbnail-color-active')};
106+
}
91107
}
92108

93109
[part='end'] {

0 commit comments

Comments
 (0)