Skip to content

Commit b28c72f

Browse files
committed
Set buttons border radius to 2px
1 parent 92a7445 commit b28c72f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/button/styled.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,13 @@ export const StyledButton = styled.button.attrs(
125125
({ groupFirst, groupLast, groupMiddle, ...props }) => ({
126126
padding: props.padding || props.tiny ? [0.5, 1] : props.small ? [1, 3] : [2],
127127
colors: colorsByFlavour(props),
128-
round: groupFirst ? { side: "left" } : groupLast ? { side: "right" } : !groupMiddle,
128+
round: groupFirst
129+
? { side: "left", size: 0.5 }
130+
: groupLast
131+
? { side: "right", size: 0.5 }
132+
: groupMiddle
133+
? false
134+
: 0.5,
129135
...withTheme(props),
130136
})
131137
)`

0 commit comments

Comments
 (0)