fix: order of tailwind classes
This commit is contained in:
1 parent
5528a84ee7
commit
3b03df3ff5
33 files changed
+135
-1250
No files matched your search
@@ -8,7 +8,7 @@ const buttonVariants = cva(
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default: 'bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm active:shadow',
|
||||
default: 'bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 active:shadow',
|
||||
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
||||
outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
|
||||
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
||||
@@ -19,7 +19,7 @@ const buttonVariants = cva(
|
||||
default: 'h-10 px-4 py-2',
|
||||
sm: 'h-9 rounded-md px-3',
|
||||
lg: 'h-11 rounded-md px-8',
|
||||
icon: 'h-10 w-10'
|
||||
icon: 'size-10'
|
||||
}
|
||||
},
|
||||
defaultVariants: {
|
||||
|
||||
@@ -90,7 +90,7 @@ const DialogContent = React.forwardRef<
|
||||
|
||||
return (
|
||||
<DialogPortal>
|
||||
<div className='fixed inset-0 w-full h-full bg-black/50 z-50' ref={wrapperRef}>
|
||||
<div className='fixed inset-0 z-50 size-full bg-black/50' ref={wrapperRef}>
|
||||
<DialogOverlay
|
||||
ref={(element) => {
|
||||
if (!element) return;
|
||||
@@ -115,7 +115,7 @@ const DialogContent = React.forwardRef<
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
<div className='absolute top-full block w-10 h-[20vh] pointer-events-none' />
|
||||
<div className='pointer-events-none absolute top-full block h-[20vh] w-10' />
|
||||
</DialogPrimitive.Content>
|
||||
</DialogOverlay>
|
||||
</div>
|
||||
|
||||
@@ -34,7 +34,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
<ChevronRight className='ml-auto h-4 w-4' />
|
||||
<ChevronRight className='ml-auto size-4' />
|
||||
</DropdownMenuPrimitive.SubTrigger>
|
||||
));
|
||||
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
||||
@@ -103,9 +103,9 @@ const DropdownMenuCheckboxItem = React.forwardRef<
|
||||
checked={checked}
|
||||
{...props}
|
||||
>
|
||||
<span className='absolute left-2 flex h-3.5 w-3.5 items-center justify-center'>
|
||||
<span className='absolute left-2 flex size-3.5 items-center justify-center'>
|
||||
<DropdownMenuPrimitive.ItemIndicator>
|
||||
<Check className='h-4 w-4' />
|
||||
<Check className='size-4' />
|
||||
</DropdownMenuPrimitive.ItemIndicator>
|
||||
</span>
|
||||
{children}
|
||||
@@ -125,9 +125,9 @@ const DropdownMenuRadioItem = React.forwardRef<
|
||||
)}
|
||||
{...props}
|
||||
>
|
||||
<span className='absolute left-2 flex h-3.5 w-3.5 items-center justify-center'>
|
||||
<span className='absolute left-2 flex size-3.5 items-center justify-center'>
|
||||
<DropdownMenuPrimitive.ItemIndicator>
|
||||
<Circle className='h-2 w-2 fill-current' />
|
||||
<Circle className='size-2 fill-current' />
|
||||
</DropdownMenuPrimitive.ItemIndicator>
|
||||
</span>
|
||||
{children}
|
||||
|
||||
@@ -8,7 +8,7 @@ type CursorProps = { left: number; width: number; opacity: number };
|
||||
|
||||
const Cursor: FC<CursorProps> = ({ width, left, opacity }) => (
|
||||
<li
|
||||
className='pointer-events-none absolute bg-primary rounded-2xl h-full z-0 transition-all'
|
||||
className='pointer-events-none absolute z-0 h-full rounded-2xl bg-primary transition-all'
|
||||
style={{ width, left, opacity }}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -83,7 +83,7 @@ const ToastClose = React.forwardRef<
|
||||
toast-close=""
|
||||
{...props}
|
||||
>
|
||||
<X className="h-4 w-4" />
|
||||
<X className="size-4" />
|
||||
</ToastPrimitives.Close>
|
||||
))
|
||||
ToastClose.displayName = ToastPrimitives.Close.displayName
|
||||
|
||||
Reference in new issue
Block a user