style: amélioration de la visibilité des toasts

This commit is contained in:
Julien Froidefond
2025-02-12 15:56:35 +01:00
parent b7cb466ef5
commit c84f5685fe
2 changed files with 25 additions and 12 deletions

View File

@@ -27,9 +27,9 @@ const toastVariants = cva(
{
variants: {
variant: {
default: "border bg-background text-foreground",
default: "border bg-primary text-primary-foreground shadow-lg",
destructive:
"destructive group border-destructive bg-destructive text-destructive-foreground",
"destructive group border-destructive bg-destructive text-destructive-foreground font-medium",
},
},
defaultVariants: {
@@ -89,7 +89,11 @@ const ToastTitle = React.forwardRef<
React.ElementRef<typeof ToastPrimitives.Title>,
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>
>(({ className, ...props }, ref) => (
<ToastPrimitives.Title ref={ref} className={cn("text-sm font-semibold", className)} {...props} />
<ToastPrimitives.Title
ref={ref}
className={cn("text-base font-semibold", className)}
{...props}
/>
));
ToastTitle.displayName = ToastPrimitives.Title.displayName;
@@ -99,7 +103,7 @@ const ToastDescription = React.forwardRef<
>(({ className, ...props }, ref) => (
<ToastPrimitives.Description
ref={ref}
className={cn("text-sm opacity-90", className)}
className={cn("text-sm opacity-100", className)}
{...props}
/>
));