Skip to content

Commit

Permalink
Pre-emptively fix various euiOverlayMask CSS overrides
Browse files Browse the repository at this point in the history
- this data attr isn't technically in yet but will be once elastic/eui#6289 merges

- at the very least this isn't breaking any more than it currently already is!
  • Loading branch information
cee-chen committed Oct 4, 2022
1 parent b45c8f9 commit 371f74c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Container = styled.div`

// when displaying chart in modal the tooltip is render under the modal
const LensChartTooltipFix = createGlobalStyle`
div.euiOverlayMask.euiOverlayMask--aboveHeader ~ [id^='echTooltipPortal'] {
div.euiOverlayMask[data-relative-to-header=above] ~ [id^='echTooltipPortal'] {
z-index: ${({ theme }) => theme.eui.euiZLevel7} !important;
}
`;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$fullscreenFlyoutTop: 72px;
.kbnBody.euiBody--headerIsFixed.euiDataGrid__restrictBody {
.euiOverlayMask--belowHeader {
.euiOverlayMask[data-relative-to-header=below] {
top: $fullscreenFlyoutTop;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SecuritySolutionAppWrapper.displayName = 'SecuritySolutionAppWrapper';
* when shown above content that is set to `full screen`.
*/
export const FULL_SCREEN_CONTENT_OVERRIDES_CSS_STYLESHEET = () => css`
.euiOverlayMask--belowHeader {
.euiOverlayMask[data-relative-to-header='below'] {
top: 0 !important;
}
Expand Down

0 comments on commit 371f74c

Please sign in to comment.