Skip to content

Commit

Permalink
[Security Solutions] Show popovers inside modals (#73264)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas authored Jul 28, 2020
1 parent 12d5b8d commit 46fb847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const AppGlobalStyle = createGlobalStyle<{ theme: { eui: { euiColorPrimar
border: none;
}
/* hide open popovers when a modal is being displayed to prevent them from covering the modal */
body.euiBody-hasOverlayMask .euiPopover__panel-isOpen {
/* hide open draggable popovers when a modal is being displayed to prevent them from covering the modal */
body.euiBody-hasOverlayMask .withHoverActions__popover.euiPopover__panel-isOpen{
visibility: hidden !important;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const WithHoverActions = React.memo<Props>(
hasArrow={false}
isOpen={isOpen}
panelPaddingSize={!alwaysShow ? 's' : 'none'}
panelClassName="withHoverActions__popover"
>
{isOpen ? <>{hoverContent}</> : null}
</WithHoverActionsPopover>
Expand Down

0 comments on commit 46fb847

Please sign in to comment.