fix: use same color as title for description in alert

This commit is contained in:
Elias Schneider
2025-05-24 22:32:41 +02:00
parent cbe7aa6eec
commit e19b33fc2e

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import type { HTMLAttributes } from 'svelte/elements';
import { cn, type WithElementRef } from '$lib/utils/style.js';
import type { HTMLAttributes } from 'svelte/elements';
let {
ref = $bindable(null),
@@ -13,10 +13,7 @@
<div
bind:this={ref}
data-slot="alert-description"
class={cn(
'text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed',
className
)}
class={cn('col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed', className)}
{...restProps}
>
{@render children?.()}