Skip to content

Commit

Permalink
[7.x] [Logs UI] Refine log entry row context button (#71260) (#71617)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
Alejandro Fernández and elasticmachine authored Jul 14, 2020
1 parent 3740969 commit b0ba9e6
Showing 1 changed file with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@

import React, { useMemo } from 'react';
import { i18n } from '@kbn/i18n';
import { EuiButtonIcon, EuiPopover, EuiContextMenuPanel, EuiContextMenuItem } from '@elastic/eui';
import {
EuiButton,
EuiIcon,
EuiPopover,
EuiContextMenuPanel,
EuiContextMenuItem,
} from '@elastic/eui';

import { euiStyled } from '../../../../../observability/public';
import { LogEntryColumnContent } from './log_entry_column';
Expand Down Expand Up @@ -50,12 +56,15 @@ export const LogEntryContextMenu: React.FC<LogEntryContextMenuProps> = ({

const button = (
<ButtonWrapper>
<EuiButtonIcon
<EuiButton
size="s"
fill
aria-label={ariaLabel || DEFAULT_MENU_LABEL}
color="ghost"
iconType="boxesHorizontal"
onClick={onOpen}
/>
style={{ minWidth: 'auto' }}
>
<EuiIcon type="boxesHorizontal" />
</EuiButton>
</ButtonWrapper>
);

Expand Down Expand Up @@ -88,8 +97,5 @@ const AbsoluteWrapper = euiStyled.div`
`;

const ButtonWrapper = euiStyled.div`
background: ${(props) => props.theme.eui.euiColorPrimary};
border-radius: 50%;
padding: 4px;
transform: translateY(-6px);
transform: translate(-6px, -6px);
`;

0 comments on commit b0ba9e6

Please sign in to comment.