@@ -38,6 +38,7 @@ $theme: $material;
3838
3939:host (:hover ) {
4040 [part ~= ' toggle' ] {
41+ z-index : 1 ;
4142 color : var-get ($theme , ' item-hover-text-color' );
4243 background : var-get ($theme , ' item-hover-background' );
4344 border-color : var-get ($theme , ' item-hover-border-color' );
@@ -51,30 +52,57 @@ $theme: $material;
5152:host ([part = ' toggle focused' ]),
5253:host (:focus-within ) {
5354 [part ~= ' toggle' ] {
55+ z-index : 1 ;
5456 color : var-get ($theme , ' item-focused-text-color' );
5557 background : var-get ($theme , ' item-focused-background' );
5658 border-color : var-get ($theme , ' item-focused-border-color' );
5759
5860 & :hover {
5961 background : var-get ($theme , ' item-focused-hover-background' );
6062 border-color : var-get ($theme , ' item-focused-hover-border-color' );
63+ color : var-get ($theme , ' item-focused-hover-text-color' );
6164 }
6265
6366 & :active {
6467 background : var-get ($theme , ' item-active-background' );
68+ border-color : var-get ($theme , ' item-active-border-color' );
69+ color : var-get ($theme , ' item-hover-text-color' );
70+
71+ ::slotted (igc-icon ) {
72+ color : var-get ($theme , ' item-hover-icon-color' );
73+ }
6574 }
6675 }
76+
77+ ::slotted(igc-icon) {
78+ color : var-get ($theme , ' item-focused-text-color' );
79+ }
80+ }
81+
82+ :host ([part = ' toggle focused' ]:hover ),
83+ :host (:focus-within:hover ) {
84+ ::slotted (igc-icon ) {
85+ color : var-get ($theme , ' item-focused-hover-text-color' );
86+ }
6787}
6888
6989:host (:active ),
7090[part ~= ' toggle' ]:active {
7191 [part ~= ' toggle' ] {
92+ z-index : 2 ;
7293 background : var-get ($theme , ' item-active-background' );
94+ border-color : var-get ($theme , ' item-active-border-color' );
95+ color : var-get ($theme , ' item-hover-text-color' );
96+
97+ ::slotted (igc-icon ) {
98+ color : var-get ($theme , ' item-hover-icon-color' );
99+ }
73100 }
74101}
75102
76103:host ([selected ]) {
77104 [part ~= ' toggle' ] {
105+ z-index : 3 ;
78106 color : var-get ($theme , ' item-selected-text-color' );
79107 background : var-get ($theme , ' item-selected-background' );
80108 border-color : var-get ($theme , ' item-selected-border-color' );
@@ -100,23 +128,39 @@ $theme: $material;
100128:host ([selected ][part = ' toggle focused' ]),
101129:host ([selected ]:focus-within ) {
102130 [part ~= ' toggle' ] {
131+ color : var-get ($theme , ' item-selected-text-color' );
103132 background : var-get ($theme , ' item-selected-focus-background' );
104133 border-color : var-get ($theme , ' item-focused-hover-border-color' );
105134
106135 & :hover {
107136 background : var-get ($theme , ' item-selected-focus-hover-background' );
137+ color : var-get ($theme , ' item-selected-hover-text-color' );
138+ border-color : var-get ($theme , ' item-selected-border-color' );
108139 }
109140
110141 & :active {
111142 background : var-get ($theme , ' item-selected-active-background' );
143+ border-color : var-get ($theme , ' item-selected-active-border-color' );
112144 }
113145 }
146+
147+ ::slotted (igc-icon ) {
148+ color : var-get ($theme , ' item-selected-icon-color' );
149+ }
150+ }
151+
152+ :host ([selected ][part = ' toggle focused' ]:hover ),
153+ :host ([selected ]:focus-within:hover ) {
154+ ::slotted (igc-icon ) {
155+ color : var-get ($theme , ' item-selected-hover-icon-color' );
156+ }
114157}
115158
116159:host ([selected ]:active ),
117160:host ([selected ]) [part ~= ' toggle' ]:active {
118161 [part ~= ' toggle' ] {
119162 background : var-get ($theme , ' item-selected-active-background' );
163+ border-color : var-get ($theme , ' item-selected-active-border-color' );
120164 }
121165}
122166
0 commit comments