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

This commit is contained in:
Julia Rechkunova 2022-07-20 09:27:22 +02:00 committed by GitHub
parent 1716b71051
commit 42f2bc28c7
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 { 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;