Skip to content

Commit

Permalink
Change tooltip wrapper element to span to prevent nesting buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Mar 21, 2023
1 parent b686914 commit e9a2a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ButtonAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const ButtonAction: FC<ButtonActionProps> = ({
}) => {
if (tooltip)
return (
<WithTooltip tooltip={<TooltipNote note={tooltip} />} hasChrome={false}>
<WithTooltip tooltip={<TooltipNote note={tooltip} />} hasChrome={false} tagName="span">
<InsideButtonAction
icon={icon}
isActive={isActive}
Expand Down

0 comments on commit e9a2a0a

Please sign in to comment.