Accessibility - addAllControls suppress GUI controls with accessibilityTag


This PR seems to have caused an issue maybe? [Screen Reader Support] Option for twin renderer to not render all GUI controls by default by carolhmj · Pull Request #13877 · BabylonJS/Babylon.js · GitHub

With addAllControls: false, 3D assets with accessibility description are indeed added and updated, but 2D GUI controls get completely suppressed even if they have accessibiltyTag (description is specifically added).
If I remove that option, the description and alot of other nice stuff comes back.

It would be nice if the standard accessibility options were generated as well for this control. I’m not allowed to specify “role: button” for some reason, even though it is infact a button.

Past post about it: Accessibility package confusion in the docs



Hello! Can you share a bit more about how your controls are set up? If you can share a PG even better :smiley:

Here’s a playground!
Seems it has to do with when you have button inside nested components like Rectangle or StackPanel.

Oooh, that makes sense! Opened a PR with a fix, thanks for bringing this to our attention :slight_smile: fix children nodes with description not being rendered on a11y tree w… by carolhmj · Pull Request #14145 · BabylonJS/Babylon.js (

1 Like

I got the patch (6.17.0) and it’s all fixed! Thanks!

1 Like