Skip to content

Commit 14cb571

Browse files
authored
Fix relative z-index of spy panel and filter editor (#13717) (#13736)
* Fixes relative z-index of spy panel and filter editor * Position sidebar above main content so collapser button remains clickable
1 parent 826ca44 commit 14cb571

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/core_plugins/kibana/public/discover/styles/main.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.discover-wrapper {
99
padding-right: 0px !important;
1010
padding-left: @collapser-width;
11+
z-index: @discoverWrapperDepth;
1112
}
1213

1314
.discover-content {

src/ui/public/collapsible_sidebar/collapsible_sidebar.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.collapsible-sidebar {
44
position: relative;
5-
z-index: 1;
5+
z-index: @discoverSidebarDepth;
66

77
.sidebar-collapser {
88
position: absolute;
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
/**
22
* 1. The local nav contains tooltips which should pop over the filter bar.
33
* 2. The filter and local nav components should always appear above the dashboard grid items.
4+
* 3. The filter and local nav components should always appear above the discover content.
5+
* 4. The sidebar collapser button should appear above the main Discover content but below the top elements.
46
*/
5-
@filterBarDepth: 2; /* 1 */
6-
@localNavDepth: 3; /* 1 */
7+
@filterBarDepth: 3; /* 1 */
8+
@localNavDepth: 4; /* 1 */
79
@dashboardGridDepth: 1; /* 2 */
10+
@discoverWrapperDepth: 1; /* 3 */
11+
@discoverSidebarDepth: 2; /* 4 */

0 commit comments

Comments
 (0)