feat: modify button component

This commit is contained in:
QiShaoXuan
2022-12-09 19:00:42 +08:00
parent 57f19ee4a7
commit 4699f8f3bf
5 changed files with 8 additions and 2 deletions
+3
View File
@@ -65,6 +65,7 @@ export const StyledButton = styled.button<
| 'hoverStyle'
| 'shape'
| 'type'
| 'bold'
>
>(
({
@@ -74,6 +75,7 @@ export const StyledButton = styled.button<
hoverBackground,
hoverColor,
hoverStyle,
bold = false,
shape = 'default',
type = 'default',
}) => {
@@ -91,6 +93,7 @@ export const StyledButton = styled.button<
// TODO: Implement circle shape
borderRadius: shape === 'default' ? borderRadius : height / 2,
fontSize,
fontWeight: bold ? '500' : '400',
'.affine-button-icon': {
color: theme.colors.iconColor,
},