Skip to content

Commit ba7201c

Browse files
authored
Merge pull request #1245 from IgniteUI/rkolev/fix-1239
Fixing the visibility of a button
2 parents 98df0a8 + 0f5522b commit ba7201c

File tree

2 files changed

+4
-31
lines changed

2 files changed

+4
-31
lines changed

src/app/notifications/snackbar/snackbar-sample-4/snackbar-sample-4.component.html

+4-11
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@
33
<igx-list-item [isHeader]="true">Contacts</igx-list-item>
44

55
<igx-list-item igxRipple="pink" igxRippleTarget=".igx-list__item-content" *ngFor="let item of navItems">
6-
<div class="item-container">
7-
<div class="contact">
8-
<igx-avatar [src]="item.avatar" roundShape="true"></igx-avatar>
9-
<div class="contact__info">
10-
<span class="name">{{item.text}}</span>
11-
</div>
12-
</div>
13-
<span igxButton="icon" igxRipple igxRippleCentered="true" (click)="delete(item)">
6+
<igx-avatar igxListThumbnail [src]="item.avatar" roundShape="true"></igx-avatar>
7+
<span igxListLineTitle class="name">{{item.text}}</span>
8+
<span igxListAction igxButton="icon" igxRipple igxRippleCentered="true" (click)="delete(item)">
149
<igx-icon color="#ff5252">delete</igx-icon>
1510
</span>
16-
</div>
17-
1811
</igx-list-item>
1912

2013
<igx-snackbar actionText="Undo" (onAction)="restore()">Contact deleted</igx-snackbar>
2114
</igx-list>
22-
</div>
15+
</div>

src/app/notifications/snackbar/snackbar-sample-4/snackbar-sample-4.component.scss

-20
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,6 @@
1212
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
1313
}
1414

15-
.item-container {
16-
display: flex;
17-
justify-content: space-between;
18-
align-items: center;
19-
}
20-
21-
.contact {
22-
display: flex;
23-
flex: 1 0 240px;
24-
align-items: center;
25-
position: relative;
26-
z-index: 0;
27-
28-
&__info {
29-
display: flex;
30-
flex-flow: column nowrap;
31-
margin-left: 24px;
32-
}
33-
}
34-
3515
igx-snackbar {
3616
position: absolute;
3717
bottom: 0;

0 commit comments

Comments
 (0)