Skip to content

Commit

Permalink
move span inside tooltip (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebykat authored Sep 3, 2020
1 parent 1c6d001 commit b72bf77
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/icon-button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ type OwnProps = {
type Props = OwnProps;

export const IconButton = ({ icon, title, ...props }: Props) => (
<span>
<Tooltip
classes={{ tooltip: 'icon-button__tooltip' }}
enterDelay={200}
title={title}
>
<Tooltip
classes={{ tooltip: 'icon-button__tooltip' }}
enterDelay={200}
title={title}
>
<span>
<button
className="icon-button"
type="button"
Expand All @@ -24,8 +24,8 @@ export const IconButton = ({ icon, title, ...props }: Props) => (
>
{icon}
</button>
</Tooltip>
</span>
</span>
</Tooltip>
);

export default IconButton;

0 comments on commit b72bf77

Please sign in to comment.