Skip to content

Commit

Permalink
Fix layout and remove title for add alert popover. (elastic#77633) (e…
Browse files Browse the repository at this point in the history
…lastic#80201)

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
3 people authored Oct 12, 2020
1 parent 7ec3a17 commit fa41c11
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,13 @@ export const ToggleAlertFlyoutButtonComponent: React.FC<Props> = ({
panels = [
{
id: ALERT_CONTEXT_MAIN_PANEL_ID,
title: 'main panel',
items: [...selectionItems, managementContextItem],
},
];
} else {
panels = [
{
id: ALERT_CONTEXT_MAIN_PANEL_ID,
title: 'main panel',
items: [
{
'aria-label': ToggleFlyoutTranslations.openAlertContextPanelAriaLabel,
Expand Down Expand Up @@ -140,6 +138,7 @@ export const ToggleAlertFlyoutButtonComponent: React.FC<Props> = ({
closePopover={() => setIsOpen(false)}
isOpen={isOpen}
ownFocus
panelPaddingSize="none"
>
<EuiContextMenu initialPanelId={0} panels={panels} />
</EuiPopover>
Expand Down

0 comments on commit fa41c11

Please sign in to comment.