Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

EYHN6ca7c418617e
diff --git a/packages/frontend/component/src/ui/button/button.tsx b/packages/frontend/component/src/ui/button/button.tsx
index f7250cb543..4a8ee87841 100644
--- a/packages/frontend/component/src/ui/button/button.tsx
+++ b/packages/frontend/component/src/ui/button/button.tsx
@@ -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,