fix: Fix colored toast background variant selection

This commit is contained in:
icarus 2026-01-05 20:51:57 +08:00
parent 833fa467ba
commit f4f6e4fdeb
No known key found for this signature in database
GPG Key ID: D4AF089AAEC25D18

View File

@ -371,7 +371,7 @@ function toast(props: ToastProps) {
toast: cn(
'flex rounded-xs p-4 bg-background border-border border-[0.5px] shadow-lg items-center',
props.button ? 'gap-3' : 'gap-4',
props.colored && type !== 'custom' && toastBgColorVariants({ type }),
props.colored && toastBgColorVariants({ type: props.type }),
props.classNames?.toast
),
content: cn('flex flex-col', props.description && (props.button ? 'gap-1' : 'gap-2')),