phetsims / sun

User-interface components for PhET simulations, built on top of Scenery.
MIT License
4 stars 12 forks source link

Accessibility support for PushButtonModel #857

Open jessegreenberg opened 10 months ago

jessegreenberg commented 10 months ago

The various fireOnHold options of PushButtonModel are not supported with alt input. "press and hold" behavior is generally not screen reader compatible so we didn't look into adding support for it. But it has come up several times. See https://github.com/phetsims/build-a-nucleus/issues/196 for an example.

I think we should add support for this in PushButtonModel (and other models like #796). We can be screen reader compatible by using some aria role other than button. That should work even if it is a bit unconventional.

Consider doing the same thing for FireListener in scenery.

zepumph commented 5 months ago

Very related to the scenery support needed in https://github.com/phetsims/scenery/issues/1117.