Skip to content

Commit

Permalink
Also check for 'icon'
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens committed Oct 25, 2024
1 parent 96c876e commit 44849cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const Button = forwardRef(
className={clsx(
'ams-button',
`ams-button--${variant}`,
iconOnly && !iconBefore && `ams-button--icon-only`,
icon && iconOnly && !iconBefore && `ams-button--icon-only`,
className,
)}
disabled={disabled}
Expand Down

0 comments on commit 44849cb

Please sign in to comment.