Skip to content

Commit

Permalink
feat: Slim border on small buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
gorandalum committed Jan 20, 2025
1 parent c8141ba commit 35b8126
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ export const Button = React.forwardRef<any, ButtonProps>(
paddingHorizontal: spacing,
paddingVertical: type === 'small' ? theme.spacing.xSmall : spacing,
borderRadius: theme.border.radius.circle,
borderWidth:
type === 'small'
? theme.border.width.slim
: theme.border.width.medium,
...(expanded && type === 'small'
? {
justifyContent: 'center',
Expand Down Expand Up @@ -265,11 +269,10 @@ const useTextMarginHorizontal = (
return maxIconSize + theme.spacing.xSmall;
};

const useButtonStyle = StyleSheet.createThemeHook((theme: Theme) => ({
const useButtonStyle = StyleSheet.createThemeHook(() => ({
button: {
flexDirection: 'row',
alignItems: 'center',
borderWidth: theme.border.width.medium,
},
}));

Expand Down

0 comments on commit 35b8126

Please sign in to comment.