kbrgl / svelte-french-toast

🍞🥂 Buttery smooth toast notifications for Svelte
https://svelte-french-toast.vercel.app/
MIT License
875 stars 37 forks source link

Screen reader reads text 3 times #78

Open wesbos opened 2 months ago

wesbos commented 2 months ago

I think because of the animations or some other DOM changes, the role="alert" on the toaster causes the screen reader to read the text 3 times.

I'm not sure the fix for this, but I would think having a nested div for the role="alert" that does not change would fix it.

Example of the issue on the docs but also happens on syntax.fm

https://github.com/user-attachments/assets/d23a1a50-bade-40c6-a04f-ace7af283af9

kbrgl commented 1 month ago

@wesbos Thanks for reporting this. If anyone can make a PR, happy to merge!