Skip to content

Commit

Permalink
Fix relative z-index of spy panel and filter editor (#13717) (#13736)
Browse files Browse the repository at this point in the history
* Fixes relative z-index of spy panel and filter editor

* Position sidebar above main content so collapser button remains clickable
  • Loading branch information
Bargs authored Aug 29, 2017
1 parent 826ca44 commit 14cb571
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/core_plugins/kibana/public/discover/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.discover-wrapper {
padding-right: 0px !important;
padding-left: @collapser-width;
z-index: @discoverWrapperDepth;
}

.discover-content {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/collapsible_sidebar/collapsible_sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.collapsible-sidebar {
position: relative;
z-index: 1;
z-index: @discoverSidebarDepth;

.sidebar-collapser {
position: absolute;
Expand Down
8 changes: 6 additions & 2 deletions src/ui/public/styles/variables/depth.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/**
* 1. The local nav contains tooltips which should pop over the filter bar.
* 2. The filter and local nav components should always appear above the dashboard grid items.
* 3. The filter and local nav components should always appear above the discover content.
* 4. The sidebar collapser button should appear above the main Discover content but below the top elements.
*/
@filterBarDepth: 2; /* 1 */
@localNavDepth: 3; /* 1 */
@filterBarDepth: 3; /* 1 */
@localNavDepth: 4; /* 1 */
@dashboardGridDepth: 1; /* 2 */
@discoverWrapperDepth: 1; /* 3 */
@discoverSidebarDepth: 2; /* 4 */

0 comments on commit 14cb571

Please sign in to comment.