Skip to content

Commit

Permalink
[Discover] Fix visibility of saved search grids when one of them is i…
Browse files Browse the repository at this point in the history
…n fullscreen mode (#136198)
  • Loading branch information
jughosta committed Jul 20, 2022
1 parent 1716b71 commit 42f2bc2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/plugins/discover/public/embeddable/saved_search_grid.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

/**
* 1. Fixes fullscreen mode for saved searches on Dashboard. Otherwise, sibling grids can obscure the grid in fullscreen mode.
* "euiDataGrid__restrictBody" is set to body element when a grid is in fullscreen
* https://github.com/elastic/kibana/issues/134032
*/
.euiDataGrid__restrictBody .embPanel .embPanel__content {
z-index: unset !important; /* 1 */
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import { DataTableRecord } from '../types';
import { DiscoverGrid, DiscoverGridProps } from '../components/discover_grid/discover_grid';
import { TotalDocuments } from '../application/main/components/total_documents/total_documents';
import './saved_search_grid.scss';

export interface DiscoverGridEmbeddableProps extends DiscoverGridProps {
totalHitCount: number;
Expand Down

0 comments on commit 42f2bc2

Please sign in to comment.