DEV Community

Discussion on: 🚀 Svelte Quick Tip: Creating a toast notification system

Collapse
geoffrich profile image
Geoff Rich

If you want to do it using an attribute, aria-label="Close" would be preferable to title, since title is inconsistently announced by screen readers. However, visually hidden text (the technique above) is more likely to be translated.

Thread Thread
justingolden21 profile image
Justin Golden

Got it, thank you.