Skip to content

Commit 14e668c

Browse files
committed
fix(item-divider): fabs have higher z-index than item-dividers
fixes #8489
1 parent 713e2a1 commit 14e668c

File tree

6 files changed

+41
-2
lines changed

6 files changed

+41
-2
lines changed

src/components/item/item.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ion-item-group {
7676
}
7777

7878
ion-item-divider {
79-
z-index: 1000;
79+
z-index: $z-index-item-divider;
8080
display: flex;
8181
overflow: hidden;
8282

src/components/list/test/header-scenarios/main.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
</ion-header>
66

77
<ion-content class="outer-content">
8+
9+
<div>
10+
<ion-fab top right>
11+
<button ion-fab><ion-icon name="add"></ion-icon></button>
12+
</ion-fab>
13+
</div>
14+
<ion-fab bottom right>
15+
<button ion-fab><ion-icon name="close"></ion-icon></button>
16+
</ion-fab>
17+
818
<ion-list>
919
<!--<ion-list-header>
1020
ion-list-header

src/components/list/test/headers/main.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99

1010
<ion-content class="outer-content">
1111

12+
<div>
13+
<ion-fab top right>
14+
<button ion-fab><ion-icon name="add"></ion-icon></button>
15+
</ion-fab>
16+
</div>
17+
<ion-fab bottom right>
18+
<button ion-fab><ion-icon name="close"></ion-icon></button>
19+
</ion-fab>
20+
1221
<ion-list>
1322

1423
<ion-list-header>

src/components/list/test/inset/main.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99

1010
<ion-content class="outer-content">
1111

12+
<div>
13+
<ion-fab top right>
14+
<button ion-fab><ion-icon name="add"></ion-icon></button>
15+
</ion-fab>
16+
</div>
17+
<ion-fab bottom right>
18+
<button ion-fab><ion-icon name="close"></ion-icon></button>
19+
</ion-fab>
20+
1221
<ion-list inset>
1322

1423
<ion-list-header>

src/components/list/test/sticky/main.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
<ion-content>
2+
3+
<div>
4+
<ion-fab top right>
5+
<button ion-fab><ion-icon name="add"></ion-icon></button>
6+
</ion-fab>
7+
</div>
8+
<ion-fab bottom right>
9+
<button ion-fab><ion-icon name="close"></ion-icon></button>
10+
</ion-fab>
11+
212
<ion-list>
313
<ion-item-group *ngFor="let group of groups">
414
<ion-item-divider sticky>{{group.title}}</ion-item-divider>

src/themes/ionic.globals.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $z-index-menu-backdrop: 79;
3232
$z-index-overlay: 1000;
3333
$z-index-click-block: 9999;
3434

35-
$z-index-fixed-content: 100;
35+
$z-index-fixed-content: 999;
3636
$z-index-scroll-content: 1;
3737
$z-index-refresher: 0;
3838

@@ -44,3 +44,4 @@ $z-index-backdrop: 2;
4444
$z-index-overlay-wrapper: 10;
4545

4646
$z-index-item-options: 1;
47+
$z-index-item-divider: 100;

0 commit comments

Comments
 (0)