svelte-french-toast icon indicating copy to clipboard operation
svelte-french-toast copied to clipboard

Screen reader reads text 3 times

Open wesbos opened this issue 5 months ago • 0 comments

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

wesbos avatar Sep 04 '24 16:09 wesbos