Skip to content

Commit 0466a28

Browse files
Add status role to toast message (#33)
Screen readers will see this role and announce the toast content upon creation. Co-authored-by: John Slipper <[email protected]>
1 parent e0e4ef2 commit 0466a28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ToastItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ onDestroy(() => {
127127
</style>
128128

129129
<div class="_toastItem" class:pe={item.pausable} on:mouseenter={pause} on:mouseleave={resume}>
130-
<div class="_toastMsg" class:pe={item.component}>
130+
<div role="status" class="_toastMsg" class:pe={item.component}>
131131
{#if item.component}
132132
<svelte:component this={item.component.src} {...getProps()} />
133133
{:else}

0 commit comments

Comments
 (0)