fix layout shift when toggling checkbox (#33319)

This commit is contained in:
Jordi Enric authored and GitHub committed 2025-02-04 15:52:57 +01:00
1 parent a67fcb1809
commit 8cbff35e8d
1 file changed
+1 -1
@@ -13,7 +13,7 @@ const Checkbox = React.forwardRef<
<CheckboxPrimitive.Root
ref={ref}
className={cn(
'peer h-4 w-4 shrink-0 rounded border border-control bg-control/25 ring-offset-background',
'peer flex items-center justify-center h-4 w-4 shrink-0 rounded border border-control bg-control/25 ring-offset-background',
'transition-colors duration-150 ease-in-out',
'hover:border-strong',
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',