Skip to content

Commit 89ff4b3

Browse files
committed
feat(ui-buttons): add circular ai icon buttons
INSTUI-4627
1 parent 0e4adf0 commit 89ff4b3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/ui-buttons/src/BaseButton/styles.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,11 @@ const generateStyle = (
382382
background: `
383383
linear-gradient(to bottom, ${componentTheme.aiBorderTopGradientColor} 0%, ${componentTheme.aiBorderBottomGradientColor} 100%)`,
384384
padding: componentTheme.borderWidth,
385-
borderRadius: `calc(${componentTheme.borderRadius} + ${componentTheme.borderWidth})`
385+
...(shape !== 'circle'
386+
? {
387+
borderRadius: `calc(${componentTheme.borderRadius} + ${componentTheme.borderWidth})`
388+
}
389+
: {})
386390
}
387391
}
388392
: {})

0 commit comments

Comments
 (0)