Skip to content

Commit

Permalink
remove implied role
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-dot-js committed Jan 24, 2025
1 parent 13dc109 commit 23574ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mantle/src/components/button/button-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const buttonGroupVariants = cva("border-form inline-flex items-center rounded-md

type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;

type ButtonGroupProps = Omit<ComponentProps<"fieldset">, "role"> & ButtonGroupVariants;
type ButtonGroupProps = ComponentProps<"fieldset"> & ButtonGroupVariants;

/**
* A contained group of related buttons.
*/
const ButtonGroup = forwardRef<ElementRef<"fieldset">, ButtonGroupProps>(
({ appearance, className, children, ...props }, ref) => {
return (
<fieldset className={cx(buttonGroupVariants({ appearance }), className)} ref={ref} role="group" {...props}>
<fieldset className={cx(buttonGroupVariants({ appearance }), className)} ref={ref} {...props}>
{children}
</fieldset>
);
Expand Down

0 comments on commit 23574ab

Please sign in to comment.