🎨 Sort classes (#1750)

This commit is contained in:
Luke Vella 2025-06-03 09:24:33 +01:00 committed by GitHub
parent af7b0a82d1
commit dcc41eb0f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
120 changed files with 374 additions and 365 deletions

View file

@ -14,10 +14,10 @@ const iconVariants = cva("", {
primary: "text-primary-600",
},
size: {
sm: "w-3 h-3",
md: "w-4 h-4",
lg: "w-5 h-5",
xl: "w-7 h-7",
sm: "h-3 w-3",
md: "h-4 w-4",
lg: "h-5 w-5",
xl: "h-7 w-7",
},
},
defaultVariants: {
@ -40,7 +40,7 @@ export function Icon({
<Slot
className={cn(
iconVariants({ size, variant }),
"group-[.bg-primary]:text-primary-50 group-[.bg-destructive]:text-destructive-foreground group shrink-0",
"group shrink-0 group-[.bg-destructive]:text-destructive-foreground group-[.bg-primary]:text-primary-50",
className,
)}
>