Skip to content

Commit 74b545b

Browse files
committed
fix(list): selected & hover styles
1 parent b3e7c34 commit 74b545b

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

projects/igniteui-angular/src/lib/core/styles/components/list/_list-theme.scss

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -142,35 +142,43 @@
142142
&:last-of-type {
143143
border-bottom: none;
144144
}
145+
}
145146

146-
&:hover {
147+
%igx-list-item-base:not(%igx-list-item-base--selected) {
148+
&:hover,
149+
&:focus-within {
147150
%igx-list__item-lines {
148151
color: currentColor;
149152
}
150153

151-
%igx-list__item-line-title {
152-
color: var-get($theme, 'item-title-color-hover');
153-
}
154+
%igx-list-item-content:not(%igx-list-item-content--active) {
155+
color: var-get($theme, 'item-text-color-hover');
156+
background: var-get($theme, 'item-background-hover');
154157

155-
%igx-list__item-line-subtitle {
156-
color: var-get($theme, 'item-subtitle-color-hover');
157-
}
158+
%igx-list__item-line-title {
159+
color: var-get($theme, 'item-title-color-hover');
160+
}
158161

159-
%igx-list__item-actions {
160-
color: var-get($theme, 'item-action-color-hover');
162+
%igx-list__item-line-subtitle {
163+
color: var-get($theme, 'item-subtitle-color-hover');
164+
}
161165

162-
igx-icon,
163-
igc-icon {
164-
color: var-get($theme, 'item-action-color-hover')
166+
%igx-list__item-actions {
167+
color: var-get($theme, 'item-action-color-hover');
168+
169+
igx-icon,
170+
igc-icon {
171+
color: var-get($theme, 'item-action-color-hover')
172+
}
165173
}
166-
}
167174

168-
%igx-list__item-thumbnail {
169-
color: var-get($theme, 'item-thumbnail-color-hover');
175+
%igx-list__item-thumbnail {
176+
color: var-get($theme, 'item-thumbnail-color-hover');
170177

171-
igx-icon,
172-
igc-icon {
173-
color: var-get($theme, 'item-thumbnail-color-hover')
178+
igx-icon,
179+
igc-icon {
180+
color: var-get($theme, 'item-thumbnail-color-hover')
181+
}
174182
}
175183
}
176184
}
@@ -253,12 +261,6 @@
253261
background: var-get($theme, 'item-background');
254262
z-index: 2;
255263
gap: if($variant == 'indigo', rem(8px), rem(16px));
256-
257-
&:hover,
258-
&:focus-within {
259-
color: var-get($theme, 'item-text-color-hover');
260-
background: var-get($theme, 'item-background-hover');
261-
}
262264
}
263265

264266
%igx-list-header,

0 commit comments

Comments
 (0)