codeforamerica / honeycrisp-gem

A Rails gem with base styles and Javascript for Code for America products
http://honeycrisp.herokuapp.com
MIT License
24 stars 8 forks source link

Make reveal more accessible #317

Closed arinchoi03 closed 6 months ago

arinchoi03 commented 6 months ago

Allows Safari screenreaders to announce expanded/collapsed state of the reveal when clicked/pressed on to open/close

https://www.pivotaltracker.com/story/show/186891325

arinchoi03 commented 6 months ago

I tried:

After talking with Devon, he said most screenreaders use Safari, which this implementation does work on. Firefox/Chrome, however, announces the expanded/collapsed state when we tab over the element, but does not when we click/press down on it. I can see in the voiceover window that it tries to announce the state, but its quickly written over by the Button text.