Skip to content

Commit

Permalink
fix(button) cursor icon on clickable icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Sep 4, 2023
1 parent 652d57a commit 4797767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/designSystem/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
localLoading && !icon && !!startIcon ? (
<Icon animation="spin" name="processing" />
) : (
startIcon && <Icon name={startIcon} />
startIcon && <Icon name={startIcon} onClick={() => handleClick} />
)
}
{...mapProperties(variant, !!inheritColor)}
Expand All @@ -182,7 +182,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
localLoading ? (
<Icon animation="spin" name="processing" />
) : (
<Icon name={icon} />
<Icon name={icon} onClick={() => handleClick} />
)
) : (
children
Expand Down

0 comments on commit 4797767

Please sign in to comment.