Skip to content

Commit

Permalink
set accessible order for intro screen, see #104
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarlow12 committed Oct 11, 2017
1 parent 604db81 commit 2ca2d94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/common/view/PlinkoProbabilityCommonView.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ define( function( require ) {
this.addChild( board );
this.addChild( ballsNode );
this.addChild( eraserButton );
this.addChild( soundToggleButton );
this.addChild( resetAllButton );
this.addChild( histogramNode );
this.addChild( hopper );
this.addChild( soundToggleButton );
this.addChild( resetAllButton );

// Hide BallsNode when the hopper mode is not 'ball'.
// unlink unnecessary since this instance exists for the lifetime of the sim.
Expand Down
6 changes: 5 additions & 1 deletion js/intro/view/IntroScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ define( function( require ) {
} );

// rendering order
this.addChild( histogramModeControl );
this.addChild( playPanel );
this.addChild( histogramModeControl );
this.addChild( numberBallsDisplay );
this.addChild( pegsNode );
this.addChild( cylindersBackNode );
Expand Down Expand Up @@ -117,6 +117,10 @@ define( function( require ) {
}
} );
} );

// a11y
// set tab order
this.accessibleOrder = [ playPanel, histogramModeControl, this.eraserButton ];
}

plinkoProbability.register( 'IntroScreenView', IntroScreenView );
Expand Down

0 comments on commit 2ca2d94

Please sign in to comment.