fix: toast title (#541)

This commit is contained in:
Jason Rasmussen
2026-05-27 10:02:43 -04:00
committed by GitHub
parent 637f0d6fad
commit 8979cd1109
2 changed files with 3 additions and 12 deletions
@@ -76,17 +76,8 @@
};
const handleClick = () => {
for (const color of ['primary', 'secondary', 'success', 'info', 'warning', 'danger'] as const) {
toastManager.show(
{
title: color,
description,
color,
},
{
timeout,
},
);
for (const { label: title, value: color } of colors) {
toastManager.show({ title, description, color }, { timeout });
}
};
@@ -58,7 +58,7 @@
{/if}
</div>
<div class="ms-1 flex grow justify-between">
<div class="flex flex-col px-2">
<div class="flex flex-col px-2 justify-around">
{#if title}
<Text fontWeight="semi-bold" class={titleStyles({ color })}>{@render resolve(title)}</Text>
{/if}