Skip to content

Commit

Permalink
changed checkbox centering
Browse files Browse the repository at this point in the history
  • Loading branch information
NewstellerBot committed Mar 30, 2024
1 parent f47bb97 commit 6deec9b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/www/registry/new-york/ui/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ const Checkbox = React.forwardRef<
)}
{...props}
>
<CheckboxPrimitive.Indicator
className={cn("flex items-center justify-center text-current")}
>
<CheckIcon className="h-4 w-4" />
<CheckboxPrimitive.Indicator className={cn("relative text-current")}>
<CheckIcon className="absolute left-1/2 top-1/2 h-4 w-4 -translate-x-1/2 -translate-y-1/2" />
</CheckboxPrimitive.Indicator>
</CheckboxPrimitive.Root>
))
Expand Down

0 comments on commit 6deec9b

Please sign in to comment.