You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using sveltekit 1.27.4 and transitions are not working on both the default notification and custom notification
Here's my CustomToast.svelte component
<scriptlang="ts">
import Icon from '@iconify/svelte';
import {onMount} from 'svelte';
import {fade} from 'svelte/transition';
export let notification: {type: string;text: string};
export let onRemove: () =>void;lettimer: number;exportletwithoutStyles: boolean;consthandleButtonClick=()=>{onRemove();};
onMount(() =>{timer=setTimeout(()=>{onRemove();},5000);return()=>{clearTimeout(timer);};});
</script><divtransition:fadeclass={withoutStyles
? ''
: 'bg-white py-2 px-4 rounded-md border border-slate-200 flex items-center justify-between mt-4 min-w-[24rem]'}><divclass="flex items-center space-x-2">{#if notification.type==='error'}<Iconicon="mdi:alert-circle"class="text-red-500"/>{:elseifnotification.type==='warning'}<Iconicon="mdi:alert-circle"class="text-yellow-500"/>{:else}<Iconicon="mdi:check-circle"class="text-green-500"/>{/if}
<pclass="text-slate-500 text-sm">{notification.text}</p></div>
<buttonon:click={handleButtonClick}class="text-slate-500"><Iconicon="mdi:close-thick"/></button></div>
Here's my +layout.svelte file at the root of routes directory
I'm using sveltekit 1.27.4 and transitions are not working on both the default notification and custom notification
Here's my
CustomToast.svelte
componentHere's my
+layout.svelte
file at the root ofroutes
directoryThe text was updated successfully, but these errors were encountered: