diff --git a/weave-js/src/components/ToggleButtonGroup.tsx b/weave-js/src/components/ToggleButtonGroup.tsx index 65b2c538975..e69e0a34dc3 100644 --- a/weave-js/src/components/ToggleButtonGroup.tsx +++ b/weave-js/src/components/ToggleButtonGroup.tsx @@ -53,25 +53,30 @@ export const ToggleButtonGroup = React.forwardRef< + disabled={isDisabled || value === optionValue} + className={twMerge( + size === 'small' && 'first:rounded-l-[4px] last:rounded-r-[4px]', + size === 'medium' && 'first:rounded-l-[5px] last:rounded-r-[5px]', + size === 'large' && 'first:rounded-l-[5px] last:rounded-r-[5px]', + 'overflow-hidden' + )}>