Skip to content

Commit

Permalink
Fix a11y warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zerodevx committed Jul 2, 2023
1 parent a06e29f commit 8b0b00b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/ToastItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,15 @@ onDestroy(() => {
</script>

<div
role="status"
class="_toastItem"
class:pe={item.pausable}
on:mouseenter={() => {
if (item.pausable) pause()
}}
on:mouseleave={resume}
>
<div role="status" class="_toastMsg" class:pe={item.component}>
<div class="_toastMsg" class:pe={item.component}>
{#if item.component}
<svelte:component this={item.component.src} {...cprops} />
{:else}
Expand Down

0 comments on commit 8b0b00b

Please sign in to comment.