Skip to content

Commit 973f6b2

Browse files
committed
refactor(List): Adjusting the correct ripple position of the favorite icon
1 parent 5723d21 commit 973f6b2

9 files changed

Lines changed: 10 additions & 12 deletions

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
(mousedown)="mousedown($event)">star</igx-icon>
2222
</igx-list-item>
2323
</igx-list>
24-
</div>
24+
</div>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
igx-icon {
1616
cursor: pointer;
17+
position: relative;
1718
}
1819

1920
.search {

src/app/lists/list/list-sample-4/list-sample-4.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
(mousedown)="mousedown($event)">star</igx-icon>
2626
</igx-list-item>
2727
</igx-list>
28-
</div>
28+
</div>

src/app/lists/list/list-sample-4/list-sample-4.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
igx-icon {
1717
cursor: pointer;
18+
position: relative;
1819
}
1920

2021
.search {

src/app/lists/list/list-sample-7/list-sample-7.component.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@
2020
<igx-list-item [isHeader]="true">Contacts</igx-list-item>
2121
<igx-list-item #item *ngFor="let contact of contacts" igxRipple="pink"
2222
igxRippleTarget=".igx-list__item-content">
23-
<igx-avatar igxListThumbnail [src]="contact.photo" [roundShape]="true" igxRipple="white"
24-
[igxRippleCentered]="true" (mousedown)="thumbnailMousedown($event)"></igx-avatar>
23+
<igx-avatar igxListThumbnail [src]="contact.photo" [roundShape]="true"></igx-avatar>
2524
<span igxListLineTitle>{{ contact.name }}</span>
2625
<span igxListLineSubTitle>{{ contact.phone }}</span>
2726
<igx-icon igxListAction [style.color]="contact.isFavorite ? 'orange' : 'lightgray'" igxRipple="pink"
28-
[igxRippleCentered]="true" igxRippleTarget=".igx-list__item-actions"
29-
(click)="toggleFavorite(contact, $event)" (mousedown)="mousedown($event)">star</igx-icon>
27+
[igxRippleCentered]="true" (click)="toggleFavorite(contact, $event)"
28+
(mousedown)="mousedown($event)">star</igx-icon>
3029
</igx-list-item>
3130
</igx-list>
3231
<igx-toast #toast></igx-toast>

src/app/lists/list/list-sample-7/list-sample-7.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
igx-icon {
1313
cursor: pointer;
14+
position: relative;
1415
}
1516

1617
.listItemLeftPanningStyle {

src/app/lists/list/list-sample-7/list-sample-7.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,4 @@ export class ListSample7Component implements OnInit {
8181
public mousedown(event: Event) {
8282
event.stopPropagation();
8383
}
84-
85-
public thumbnailMousedown(event: Event) {
86-
event.stopPropagation();
87-
}
8884
}

src/app/lists/list/list-sample-8/list-sample-8.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
<igx-list>
33
<igx-list-item [isHeader]="true">Contacts</igx-list-item>
44
<igx-list-item #item *ngFor="let contact of contacts">
5-
<igx-avatar igxListThumbnail [src]="contact.photo" [roundShape]="true" igxRipple="white"
6-
[igxRippleCentered]="true"></igx-avatar>
5+
<igx-avatar igxListThumbnail [src]="contact.photo" [roundShape]="true"></igx-avatar>
76
<span igxListLineTitle>{{ contact.name }}</span>
87
<span igxListLineSubTitle>{{ contact.phone }}</span>
98
<igx-icon igxListAction [style.color]="contact.isFavorite ? 'orange' : 'lightgray'" igxRipple="white"

src/app/lists/list/list-sample-8/list-sample-8.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@
1919

2020
igx-icon {
2121
cursor: pointer;
22+
position: relative;
2223
}

0 commit comments

Comments
 (0)