Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const LayoutSidebar = ({ children }: LayoutSidebarProps) => {
css={styles.root}
className="kbnChromeLayoutSidebar"
data-test-subj="kbnChromeLayoutSidebar"
data-kbn-preserve-zindex="true"
{...euiIncludeSelectorInFocusTrap.prop}
>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ const globalLayoutStyles = (euiThemeContext: UseEuiTheme) => {
position: relative; // This is temporary for apps that relied on this being present on \`.application\`
}

// make data grid full screen mode respect the header banner
// make data grid full screen mode respect the header banner and the sidebar
#kibana-body .euiDataGrid--fullScreen {
height: calc(100vh - var(--kbnHeaderBannerHeight));
top: var(--kbnHeaderBannerHeight);
right: ${layoutVar('sidebar.width', '0px')};
}
`;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@ export const useFullScreenWatcher = () => {
export const EUI_DATA_GRID_FULL_SCREEN_CLASS = 'euiDataGrid--fullScreen';
export const UNIFIED_DATA_TABLE_FULL_SCREEN_CLASS = 'unifiedDataTable__fullScreen';

// Ensure full screen data grids are not covered by elements with a z-index
// Ensure full screen data grids are not covered by elements with a z-index.
// Elements can opt out of the z-index reset by setting data-kbn-preserve-zindex="true",
// which preserves their stacking context and that of their descendants.
const fullScreenStyles = css`
*:not(
.${EUI_DATA_GRID_FULL_SCREEN_CLASS}, .${EUI_DATA_GRID_FULL_SCREEN_CLASS} *,
[data-euiportal='true'],
[data-euiportal='true'] *
[data-euiportal='true'] *,
[data-kbn-preserve-zindex],
[data-kbn-preserve-zindex] *
) {
z-index: unset !important;
}
Expand Down
Loading