Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: add aria-label to close button in Toast component for accessibility

Tonho906d222ba995
diff --git a/src/components/toast/Toast.svelte b/src/components/toast/Toast.svelte
index 1c42f5e7..dddcc912 100644
--- a/src/components/toast/Toast.svelte
+++ b/src/components/toast/Toast.svelte
@@ -23,7 +23,7 @@
<path d={iconPath(toast.type)} />
</svg>
<span class="toast-message">{toast.message}</span>
- <button class="toast-close" onclick={() => dismissToast(toast.id)}>
+ <button class="toast-close" onclick={() => dismissToast(toast.id)} aria-label="Close">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 6L6 18M6 6l12 12" />
</svg>