We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36fae4f commit 7c33278Copy full SHA for 7c33278
1 file changed
packages/ui-kit/src/components/button/button.tsx
@@ -74,7 +74,7 @@ export const Root: FC<RootProps> = props => {
74
throw new Error(`${Root.displayName} requires ${Text.displayName} or ${Icon.displayName}`)
75
}
76
77
- const buttonClassName = buttonVariants({ variant, size, feedback, _iconOnly: Boolean(icon && !text) })
+ const buttonClassName = buttonVariants({ variant, size, feedback, _iconOnly: Boolean(icon && !text?.children) })
78
const className = cn(buttonClassName, classNameProp)
79
80
const iconPosition = icon?.props.position ?? 'end'
0 commit comments