From 692722d32eb86a94f7a6f87d4e7d860a2af5ff87 Mon Sep 17 00:00:00 2001 From: nafees nazik Date: Sat, 2 Sep 2023 11:55:44 +0530 Subject: [PATCH] revert: fix: component style --- packages/ui/primitives/alert.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ui/primitives/alert.tsx b/packages/ui/primitives/alert.tsx index a53d8fc33..190f7781d 100644 --- a/packages/ui/primitives/alert.tsx +++ b/packages/ui/primitives/alert.tsx @@ -5,13 +5,13 @@ import { VariantProps, cva } from 'class-variance-authority'; import { cn } from '../lib/utils'; const alertVariants = cva( - 'relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground', + 'relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-11', { variants: { variant: { default: 'bg-background text-foreground', destructive: - 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive', + 'text-destructive border-destructive/50 dark:border-destructive [&>svg]:text-destructive text-destructive', }, }, defaultVariants: { @@ -19,6 +19,7 @@ const alertVariants = cva( }, }, ); + const Alert = React.forwardRef< HTMLDivElement, React.HTMLAttributes & VariantProps