r/webdev • u/code-dispenser • Nov 03 '26
Web Accessibility - Narrator bug logged.
If, like me, you have the Narrator screen reader in your test matrix, you may want to check your disclosures.
I’ve found that when a disclosure button uses aria-expanded together with aria-controls (which had, or has, limited support in JAWS), Narrator sometimes doesn’t announce the expanded/collapsed state in Edge or Chrome. It’s fine in Firefox.
If you omit aria-controls, Narrator announces the state correctly in Edge and Chrome.
I’ve reported this to both Microsoft (via Feedback Hub) and Chromium (via the issue tracker).
Personally, I wouldn’t add aria-controls to disclosures unless you have a specific need for it.
Hopefully that’s useful to some of you.
2
u/SSaucecrotch Nov 03 '26
Interesting that Firefox handles it correctly while both Edge and Chrome have trouble.
I'd be curious whether the expanded state is actually updating in the browser's accessibility tree when aria-controls is present.
If the tree shows the correct state but Narrator doesn't announce it, that would help narrow down where the problem is.
Definitely an annoying kind of bug to debug.
1
u/Desperate_Dot9434 Nov 03 '26
worth testing with Narrator on mobile Edge too, the behavior can differ from desktop
1
u/indiana_long Nov 03 '26
A nice reminder that more ARIA isn't automatically better accessibility.
I'd be careful about removing aria-controls everywhere though. For a simple disclosure it's optional, but other widget patterns may rely on that relationship.
Definitely worth testing the specific component with Narrator, NVDA and JAWS rather than applying one workaround globally.
Thanks for reporting it upstream too.
0
u/[deleted] Nov 03 '26
[deleted] — view deleted comment
-3
u/[deleted] Nov 03 '26
[removed] — view removed comment