We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b1d152 commit dd59076Copy full SHA for dd59076
1 file changed
src/components/Button/Button.tsx
@@ -160,9 +160,7 @@ const ButtonComponent: React.FC<ButtonProps> = ({
160
}) => {
161
const platform = usePlatform();
162
const hasIcons = Boolean(before || after);
163
- const hasIconOnly = Boolean(
164
- (!children && !after && before) || (!children && after && !before)
165
- );
+ const hasIconOnly = !children && Boolean(after) !== Boolean(before);
166
const { resolvedMode, resolvedAppearance } = resolveButtonAppearance(
167
appearance,
168
mode
0 commit comments