Skip to content

Commit

Permalink
selfVoicing -> voicing in many places, see phetsims/tasks#1083
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Mar 25, 2021
1 parent 5c355f7 commit 642cd46
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/view/CustomGestureIntroDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ class CustomGestureIntroDialog extends Dialog {
// a wrapper that surrounds the descriptionParagraph with a Node that is focusable
// and has input listeners that make it possible to click the text to hear information
// about it
const selfVoicingWrapper = new VoicingWrapperNode( descriptionParagraph, {
const voicingWrapper = new VoicingWrapperNode( descriptionParagraph, {
listenerOptions: {
onFocusIn: speakDescriptionParagraph,
onPress: speakDescriptionParagraph
}
} );
selfVoicingWrapper.addChild( descriptionParagraph );
voicingWrapper.addChild( descriptionParagraph );

const exampleButton = new TextPushButton( testButtonContent, {
font: contentFont,
Expand All @@ -110,14 +110,14 @@ class CustomGestureIntroDialog extends Dialog {
} );

const content = new VBox( {
children: [ selfVoicingWrapper, exampleComponents, continueButton ],
children: [ voicingWrapper, exampleComponents, continueButton ],
spacing: 50
} );

super( content, options );

// @private {Node}
this.selfVoicingWrapper = selfVoicingWrapper;
this.voicingWrapper = voicingWrapper;

// listeners that provide actual self-voicing content on the example components
exampleButton.addInputListener( new VoicingInputListener( {
Expand Down Expand Up @@ -201,7 +201,7 @@ class CustomGestureIntroDialog extends Dialog {
* @public
*/
focusIntroDescription() {
this.selfVoicingWrapper.focus();
this.voicingWrapper.focus();
}
}

Expand Down

0 comments on commit 642cd46

Please sign in to comment.