Skip to content

Commit b3e7c34

Browse files
committed
fix(list): styling discrepancies
1 parent a970b68 commit b3e7c34

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
border-radius: var-get($theme, 'border-radius');
7070

7171
@if $variant == 'bootstrap' {
72-
border: rem(1px) solid var-get($theme, 'border-color');
72+
border: var-get($theme, 'border-width') solid var-get($theme, 'border-color');
7373
}
7474

7575
&:focus-visible {
@@ -137,13 +137,10 @@
137137
justify-content: center;
138138
border-radius: var-get($theme, 'item-border-radius');
139139
color: var-get($theme, 'item-text-color');
140+
border-bottom: var-get($theme, 'border-width') solid var-get($theme, 'border-color');
140141

141-
@if $bootstrap-theme or $variant == 'fluent' {
142-
border-bottom: var-get($theme, 'border-width') solid var-get($theme, 'border-color');
143-
144-
&:last-of-type {
145-
border-bottom: none;
146-
}
142+
&:last-of-type {
143+
border-bottom: none;
147144
}
148145

149146
&:hover {
@@ -285,6 +282,11 @@
285282
--component-size: #{if($variant == 'indigo', 2, var(--list-size))};
286283
}
287284

285+
igx-icon,
286+
igc-icon {
287+
color: var-get($theme, 'item-thumbnail-color');
288+
}
289+
288290
&:empty {
289291
display: none;
290292
}

src/app/list/list.sample.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h5 class="sample-title">WC List</h5>
5555
<span>Employees List</span>
5656
</igc-list-header>
5757
@for(employee of employeeItems; track employee){
58-
<igc-list-item>
58+
<igc-list-item [selected]="employee.selected">
5959
@if(properties.addAvatarThumbnail) {
6060
<igc-avatar slot="start" [src]="employee.imageURL"></igc-avatar>
6161
}
@@ -69,7 +69,7 @@ <h5 class="sample-title">WC List</h5>
6969
<span slot="subtitle">{{employee.position}}</span>
7070
}
7171
@if(properties.addCheckboxAction) {
72-
<igc-checkbox slot="end"></igc-checkbox>
72+
<igc-checkbox slot="end" [checked]="employee.selected"></igc-checkbox>
7373
}
7474
@if(properties.addIconAction) {
7575
<igc-icon slot="end" name="info"></igc-icon>

0 commit comments

Comments
 (0)