Skip to content

Commit

Permalink
chore: fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Mar 19, 2024
1 parent c8ea39a commit 009523b
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions packages/blade/src/components/ButtonGroup/StyledButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,22 @@ const StyledButtonGroup = styled(BaseBox)<StyledButtonGroupProps>(
return {
display: 'flex',
width: isFullWidth ? '100%' : 'fit-content',
overflow: 'hidden',
borderRadius: makeBorderSize(theme.border.radius.medium),
borderWidth: makeBorderSize(theme.border.width.thin),
borderColor: getIn(
theme.colors,
getBackgroundColorToken({
property: variant === 'tertiary' ? 'background' : 'border',
variant,
color,
state: isDisabled ? 'disabled' : 'default',
}),
),
borderStyle: 'solid',

...(variant === 'secondary' && {
borderColor: getIn(
theme.colors,
getBackgroundColorToken({
property: 'border',
variant,
color,
state: isDisabled ? 'disabled' : 'default',
}),
),
borderStyle: 'solid',
borderWidth: makeBorderSize(theme.border.width.thin),
}),

'button[role="button"]': {
borderRadius: 0,
Expand Down

0 comments on commit 009523b

Please sign in to comment.