Skip to content

Commit c295c7b

Browse files
committed
fix(DesignSystem): adding className to ButtonGroup
1 parent e2736fc commit c295c7b

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@import "src/lib/assets/styles/design-tokens/colors.module";
22

3-
.border > button {
3+
.border > button, .border > [role="group"] > button {
44
border: 1px solid $dv-button-border-color;
55
}

packages/design-system/src/lib/components/button-group/ButtonGroup.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@ interface ButtonGroupProps extends React.HTMLAttributes<HTMLElement> {
77
vertical?: boolean
88
}
99

10-
export function ButtonGroup({ vertical, children, ...props }: PropsWithChildren<ButtonGroupProps>) {
10+
export function ButtonGroup({
11+
vertical,
12+
children,
13+
className,
14+
...props
15+
}: PropsWithChildren<ButtonGroupProps>) {
1116
return (
12-
<ButtonGroupBS vertical={vertical} className={styles.border} {...props}>
17+
<ButtonGroupBS
18+
vertical={vertical}
19+
className={`${styles.border} ${className ? className : ''}`}
20+
{...props}>
1321
{children}
1422
</ButtonGroupBS>
1523
)

0 commit comments

Comments
 (0)