Skip to content

Commit

Permalink
Merge pull request #5534 from IgniteUI/fix-for-5504-master
Browse files Browse the repository at this point in the history
fix(List): Allowing users to modify list-item styles by adding a custom CSS class
  • Loading branch information
kdinev authored Jul 30, 2019
2 parents 6941b8f + 02584e8 commit 03daa14
Showing 1 changed file with 36 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,41 @@
flex-flow: column wrap;
justify-content: center;
border-radius: --var($theme, 'item-border-radius');
color: --var($theme, 'item-text-color');
background: --var($theme, 'item-background');

&:hover {
color: --var($theme, 'item-text-color-hover');
background: --var($theme, 'item-background-hover');

%igx-list__item-lines {
color: currentColor;
}

%igx-list__item-line-title {
color: --var($theme, 'item-title-color-hover');
}

%igx-list__item-line-subtitle {
color: --var($theme, 'item-subtitle-color-hover');
}

%igx-list__item-actions {
color: --var($theme, 'item-action-color-hover');

%igx-icon-display {
color: --var($theme, 'item-action-color-hover')
}
}

%igx-list__item-thumbnail {
color: --var($theme, 'item-thumbnail-color-hover');

%igx-icon-display {
color: --var($theme, 'item-thumbnail-color-hover')
}
}
}
}

%igx-list-item-pan {
Expand Down Expand Up @@ -381,43 +416,9 @@
align-items: center;
position: relative;
padding: map-get($list-item-padding, 'comfortable');
color: --var($theme, 'item-text-color');
background: --var($theme, 'item-background');
border-radius: --var($theme, 'item-border-radius');
background: inherit;
z-index: 2;

&:hover {
color: --var($theme, 'item-text-color-hover');
background: --var($theme, 'item-background-hover');

%igx-list__item-lines {
color: currentColor;
}

%igx-list__item-line-title {
color: --var($theme, 'item-title-color-hover');
}

%igx-list__item-line-subtitle {
color: --var($theme, 'item-subtitle-color-hover');
}

%igx-list__item-actions {
color: --var($theme, 'item-action-color-hover');

%igx-icon-display {
color: --var($theme, 'item-action-color-hover')
}
}

%igx-list__item-thumbnail {
color: --var($theme, 'item-thumbnail-color-hover');

%igx-icon-display {
color: --var($theme, 'item-thumbnail-color-hover')
}
}
}
}

%igx-list-item-content--compact {
Expand Down

0 comments on commit 03daa14

Please sign in to comment.