Skip to content

Commit

Permalink
Put extra action button inside EuiToolTip
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpeihl committed Sep 6, 2023
1 parent d41c55f commit 6e46fb7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,19 @@ exports[`EuiListGroupItem props extraAction is rendered with showToolTip 1`] = `
Label
</span>
</span>
<button
aria-label="label"
class="euiButtonIcon euiListGroupItemExtraAction emotion-euiButtonIcon-xs-empty-text-euiListGroupItemExtraAction-alwaysShow"
type="button"
>
<span
aria-hidden="true"
class="euiButtonIcon__icon"
color="inherit"
data-euiicon-type="empty"
/>
</button>
</span>
<button
aria-label="label"
class="euiButtonIcon euiListGroupItemExtraAction emotion-euiButtonIcon-xs-empty-text-euiListGroupItemExtraAction-alwaysShow"
type="button"
>
<span
aria-hidden="true"
class="euiButtonIcon__icon"
color="inherit"
data-euiicon-type="empty"
/>
</button>
</li>
`;

Expand Down
6 changes: 4 additions & 2 deletions src/components/list_group/list_group_item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,11 @@ export const EuiListGroupItem: FunctionComponent<EuiListGroupItemProps> = ({
anchorClassName={anchorClasses}
anchorProps={anchorPropsAndCss}
>
{itemContent}
<>
{itemContent}
{extraActionNode}
</>
</EuiToolTip>
{extraActionNode}
</li>
);
} else {
Expand Down

0 comments on commit 6e46fb7

Please sign in to comment.