main ← curiousdannii:main
opened 07:35AM - 06 Jul 23 UTC
Fix for https://meta.discourse.org/t/spoiler-issues-with-voiceover/257450/15
…- Most important is to remove `aria-label` when unblurring, as it is read by screen readers instead of any of the content.
- I also removed the `role` as it resulted in "Button" being read in front of unblurred spoilers, and it didn't seem quite as necessary to explicitly state it's a button to reblur the spoiler.
- I made it so that if you're selecting text in an unblurred spoiler it won't reblur.
- I moved the `aria-live: polite` to the beginning as I had a report that Voiceover was reading unblurred text twice. I'm not certain that applying `aria-live` when it did was the cause, or that this is the solution, but it doesn't seem to cause any issues now.