-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add voicing to Checkbox #742
Comments
@jessegreenberg does this look right to you? You can test in RAP if you pull all. Usage site: |
Looks really nice, and works well. Thanks @zepumph. |
@pixelzoom just found that the typing is wildly wrong for voicing. The checkedContextResponse is TAlertableDef for description, but basically just a |
It isn't clear to me how best to proceed with this. The easiest way would be to have each accept the same type, but there isn't really that support at this time, so I'm not really sure. I'm also quite surprised that we haven't run into this in any other common code just yet. |
Maybe these options should take the subset of types that both Voicing and PDOM support, that would basically just be |
Here are the TODOs in CheckBox that need to be addressed: if ( property.value ) {
options.checkedSoundPlayer.play();
options.checkedContextResponse && this.alertDescriptionUtterance( options.checkedContextResponse );
// @ts-ignore TODO https://github.com/phetsims/sun/issues/742
this.voicingSpeakNameResponse( { contextResponse: options.checkedContextResponse } );
}
else {
options.uncheckedSoundPlayer.play();
options.uncheckedContextResponse && this.alertDescriptionUtterance( options.uncheckedContextResponse );
// @ts-ignore TODO https://github.com/phetsims/sun/issues/742
this.voicingSpeakNameResponse( { contextResponse: options.uncheckedContextResponse } );
} |
Typing here has been solved over in phetsims/utterance-queue#67. See e218a68 |
From phetsims/ratio-and-proportion#363. This is pretty straight forward because of @jessegreenberg's work in 6afc6a9.
The text was updated successfully, but these errors were encountered: