From 2553ec0da765fd797bc99f0c97536b1c4bef1e37 Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Thu, 27 Jul 2023 21:21:27 +0800 Subject: [PATCH] Update alert.tsx --- packages/ui/src/components/shadcn/ui/alert.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/shadcn/ui/alert.tsx b/packages/ui/src/components/shadcn/ui/alert.tsx index e575c62b471..7fca01f98c4 100644 --- a/packages/ui/src/components/shadcn/ui/alert.tsx +++ b/packages/ui/src/components/shadcn/ui/alert.tsx @@ -6,7 +6,7 @@ import { cn } from '@ui/lib/utils' // Ivan: replaced [&:has(svg)]:pl-14 with [&>svg~*]:pl-10 cause of github.com/shadcn-ui/ui/issues/998 const alertVariants = cva( cn( - 'relative w-full rounded-lg border p-4 [&>svg~*]:pl-10 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground', + 'relative w-full text-sm rounded-lg border p-4 [&>svg~*]:pl-10 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground', '[&>svg]:w-[23px] [&>svg]:h-[23px] [&>svg]:p-1 [&>svg]:flex [&>svg]:rounded' ), { @@ -17,7 +17,7 @@ const alertVariants = cva( destructive: 'text border-destructive-400 bg-destructive-200 [&>svg]:text-destructive-200 [&>svg]:bg-destructive-600', warning: - 'text-warning-100 dark:text-warning border-warning-400 bg-warning-200 [&>svg]:text-warning-200 [&>svg]:bg-warning-600', + 'border-warning-400 bg-warning-200 [&>svg]:text-warning-200 [&>svg]:bg-warning-600', }, }, defaultVariants: {