Hacker News new | past | comments | ask | show | jobs | submit login

How do you announce the drawer to the screen readers?

For the people down voting: Drawers and other content that appear on the page needs to be announced and needs to have a state aria-expanded next to the controlledby.

This is still a genuine question. Maybe there is a way, or maybe developers collectively think that's not important (our auditors would disagree but, anyway).




Every single time I go looking for JavaScript components like this I find myself asking the same question.

I really wish component providers would start explicitly documenting this. My dream is to find a component library where each component is accompanied by videos showing how each thing behaves in different accessibility tools.


I believe it is announced as soon as you add it to the DOM and make it visible. I don’t have a computer near me to test it, but that’s what I remember when testing this stuff out a few years ago.


I’ve had to add a bunch of js to support this in the past when accessibility reports come back saying there’s no announce, mainly around css only dropdown navs.


Do you remember which reader software it was?


I'm not the person you're replying to but we test with NVDA, and we did have problems with some CSS-only solutions.


I don’t, it was a while ago and we just use js now for that sorta stuff even if it’s only for toggling aria attributes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: