phetsims / scenery-phet

Reusable components based on Scenery that are specific to PhET simulations.
MIT License
8 stars 6 forks source link

Accesibility support for Stopwatch Node #820

Closed AgustinVallejo closed 1 year ago

AgustinVallejo commented 1 year ago

First encountered in https://github.com/phetsims/keplers-laws/issues/174, when using keyboard input to focus the Stopwatch Node, it only focuses the buttons, but doesn't allow for keyboard dragging and displacing.

The restart and play/pause buttons also do not have accessible name, and are displayed as blanks in the A11y view.

jessegreenberg commented 1 year ago

One of the reasons we thought this should be a common code issue is because StopwatchNode has built in support for drag/drop behavior through DragListener. So it would make sense to have alt input support as well.

A couple of design questions I have:

jessegreenberg commented 1 year ago

@arouinfar @DianaTavares @AgustinVallejo and I had a meeting where we discussed these things.

@AgustinVallejo and I will meet tomorrow to pair on this change.

jessegreenberg commented 1 year ago

@AgustinVallejo and I paired on adding a KeyboardDragListener to the StopwatchNode in the above commits. Closing.