diff --git a/ui/src/button.tsx b/ui/src/button.tsx
index 78ce0a61fb..86b5cb3f57 100644
--- a/ui/src/button.tsx
+++ b/ui/src/button.tsx
@@ -115,6 +115,11 @@ const
center: 'center',
between: 'space-between',
around: 'space-around',
+ },
+ iconButtonPrimaryStyles = {
+ root: { color: cssVar('$white'), background: cssVar('$themePrimary') },
+ rootHovered: { color: cssVar('$white'), background: cssVar('$themeDarkAlt') },
+ rootPressed: { color: cssVar('$white'), background: cssVar('$themePrimary') }
}
const
@@ -171,8 +176,22 @@ const
} : undefined,
split: !!commands,
}
- if (isIconOnly) return
-
+ if (isIconOnly) {
+ return
+ }
return caption?.length
? primary
?