Skip to content

Commit 754ef46

Browse files
author
Adam Bradley
committed
fix(menu): safari z-index fix for .menu .scroll-content
Closes #1408
1 parent 4e0548f commit 754ef46

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

Diff for: demos/directive/sideMenus/simple/style.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: simple
3+
component: ionSideMenus
4+
---
5+
.menu-left .scroll-content {
6+
background-color: #f4f4f4;
7+
}

Diff for: scss/_menu.scss

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
width: $menu-width;
1818

1919
background-color: $menu-bg;
20+
21+
.scroll-content {
22+
z-index: $z-index-menu-scroll-content;
23+
}
24+
25+
.bar-header {
26+
z-index: $z-index-menu-bar-header;
27+
}
2028
}
2129

2230
.menu-content {

Diff for: scss/_variables.scss

+2
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@ $z-index-item-reordering: 9 !default;
669669
$z-index-item-toggle: 3 !default;
670670
$z-index-loading: 13 !default;
671671
$z-index-menu: 0 !default;
672+
$z-index-menu-bar-header: 11 !default;
673+
$z-index-menu-scroll-content: 10 !default;
672674
$z-index-modal: 10 !default;
673675
$z-index-pane: 1 !default;
674676
$z-index-popup: 12 !default;

0 commit comments

Comments
 (0)