Skip to content

Commit 21aef61

Browse files
committed
feat(list): change from class to vars for styling
1 parent 4b932ea commit 21aef61

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

src/app/lists/list/list-item-selection/list-item-selection.component.scss

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@
55
igx-list-item:hover {
66
cursor: pointer;
77
}
8+
}
89

9-
::ng-deep {
10-
.igx-list__item-base--selected .igx-list__item-content {
11-
background-color: var(--ig-secondary-500);
12-
}
13-
}
10+
.list-sample {
11+
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2),
12+
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
13+
0px 2px 1px -1px rgba(0, 0, 0, 0.12);
14+
}
1415

15-
.list-sample {
16-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2),
17-
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
18-
0px 2px 1px -1px rgba(0, 0, 0, 0.12);
19-
}
16+
igx-icon {
17+
cursor: pointer;
18+
position: relative;
19+
}
2020

21-
igx-icon {
22-
cursor: pointer;
23-
position: relative;
24-
}
21+
.search {
22+
margin-bottom: 16px;
23+
}
2524

26-
.search {
27-
margin-bottom: 16px;
28-
}
25+
igx-list-item {
26+
--item-background-selected: var(--ig-secondary-500);
27+
--item-title-color-selected: var(--ig-secondary-500-contrast);
28+
--item-subtitle-color-selected: var(--ig-info-100);
2929
}

0 commit comments

Comments
 (0)