Skip to content

Commit 03daa14

Browse files
authored
Merge pull request #5534 from IgniteUI/fix-for-5504-master
fix(List): Allowing users to modify list-item styles by adding a custom CSS class
2 parents 6941b8f + 02584e8 commit 03daa14

File tree

1 file changed

+36
-35
lines changed

1 file changed

+36
-35
lines changed

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

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,41 @@
328328
flex-flow: column wrap;
329329
justify-content: center;
330330
border-radius: --var($theme, 'item-border-radius');
331+
color: --var($theme, 'item-text-color');
332+
background: --var($theme, 'item-background');
333+
334+
&:hover {
335+
color: --var($theme, 'item-text-color-hover');
336+
background: --var($theme, 'item-background-hover');
337+
338+
%igx-list__item-lines {
339+
color: currentColor;
340+
}
341+
342+
%igx-list__item-line-title {
343+
color: --var($theme, 'item-title-color-hover');
344+
}
345+
346+
%igx-list__item-line-subtitle {
347+
color: --var($theme, 'item-subtitle-color-hover');
348+
}
349+
350+
%igx-list__item-actions {
351+
color: --var($theme, 'item-action-color-hover');
352+
353+
%igx-icon-display {
354+
color: --var($theme, 'item-action-color-hover')
355+
}
356+
}
357+
358+
%igx-list__item-thumbnail {
359+
color: --var($theme, 'item-thumbnail-color-hover');
360+
361+
%igx-icon-display {
362+
color: --var($theme, 'item-thumbnail-color-hover')
363+
}
364+
}
365+
}
331366
}
332367

333368
%igx-list-item-pan {
@@ -381,43 +416,9 @@
381416
align-items: center;
382417
position: relative;
383418
padding: map-get($list-item-padding, 'comfortable');
384-
color: --var($theme, 'item-text-color');
385-
background: --var($theme, 'item-background');
386419
border-radius: --var($theme, 'item-border-radius');
420+
background: inherit;
387421
z-index: 2;
388-
389-
&:hover {
390-
color: --var($theme, 'item-text-color-hover');
391-
background: --var($theme, 'item-background-hover');
392-
393-
%igx-list__item-lines {
394-
color: currentColor;
395-
}
396-
397-
%igx-list__item-line-title {
398-
color: --var($theme, 'item-title-color-hover');
399-
}
400-
401-
%igx-list__item-line-subtitle {
402-
color: --var($theme, 'item-subtitle-color-hover');
403-
}
404-
405-
%igx-list__item-actions {
406-
color: --var($theme, 'item-action-color-hover');
407-
408-
%igx-icon-display {
409-
color: --var($theme, 'item-action-color-hover')
410-
}
411-
}
412-
413-
%igx-list__item-thumbnail {
414-
color: --var($theme, 'item-thumbnail-color-hover');
415-
416-
%igx-icon-display {
417-
color: --var($theme, 'item-thumbnail-color-hover')
418-
}
419-
}
420-
}
421422
}
422423

423424
%igx-list-item-content--compact {

0 commit comments

Comments
 (0)