fix(component): button icon color (#7588)

This commit is contained in:
EYHN
2024-07-24 08:03:01 +00:00
parent b1380ce81f
commit 6ca7c41861

View File

@@ -71,7 +71,7 @@ const ButtonIcon: FC<IconButtonProps> = props => {
<div
{...otherProps}
className={clsx(buttonIcon, {
'color-white': type !== 'default' && type !== 'plain',
'color-white': type && type !== 'default' && type !== 'plain',
large: size === 'large',
extraLarge: size === 'extraLarge',
end: iconPosition === 'end' && !onlyIcon,