📦 Upgrade tailwind and start using size utility (#989)

This commit is contained in:
Luke Vella 2024-01-19 14:43:09 +07:00 committed by GitHub
parent 048c475cf7
commit d0b359afaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
80 changed files with 177 additions and 170 deletions

View file

@ -34,7 +34,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
{...props}
>
{children}
<ChevronRightIcon className="ml-auto h-4 w-4" />
<ChevronRightIcon className="ml-auto size-4" />
</DropdownMenuPrimitive.SubTrigger>
));
DropdownMenuSubTrigger.displayName =
@ -107,7 +107,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<DropdownMenuPrimitive.ItemIndicator>
<CheckIcon className="h-4 w-4" />
<CheckIcon className="size-4" />
</DropdownMenuPrimitive.ItemIndicator>
</span>
{children}
@ -130,7 +130,7 @@ const DropdownMenuRadioItem = React.forwardRef<
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<DropdownMenuPrimitive.ItemIndicator>
<PlusCircleIcon className="h-2 w-2 fill-current" />
<PlusCircleIcon className="size-2 fill-current" />
</DropdownMenuPrimitive.ItemIndicator>
</span>
{children}
@ -208,7 +208,7 @@ export const DropdownMenuItemIconLabel = ({
}) => {
return (
<span className="flex items-center gap-2">
<Icon className="h-4 w-4" />
<Icon className="size-4" />
{children}
</span>
);