[Discover] Fix visibility of saved search grids when one of them is in fullscreen mode (#136198) (#136930)

(cherry picked from commit 42f2bc28c7)

# Conflicts:
#	src/plugins/discover/public/embeddable/saved_search_grid.tsx

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
This commit is contained in:
Matthias Wilhelm 2022-07-22 11:30:56 +02:00 committed by GitHub
parent 134f2ac6bc
commit 33d917b073
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View file

@ -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 */
}

View file

@ -10,6 +10,7 @@ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import { DiscoverGrid, DiscoverGridProps } from '../components/discover_grid/discover_grid';
import { TotalDocuments } from '../application/main/components/total_documents/total_documents';
import { ElasticSearchHit } from '../types';
import './saved_search_grid.scss';
export interface DiscoverGridEmbeddableProps extends DiscoverGridProps {
totalHitCount: number;