Skip to content

Commit

Permalink
add screen view label, see #126
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Feb 9, 2018
1 parent bb35d02 commit c9bde10
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/resistance-in-a-wire/view/ResistanceInAWireScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ define( function( require ) {
var WireNode = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/WireNode' );
var JoistA11yStrings = require( 'JOIST/JoistA11yStrings' );

// strings
var resistanceInAWireTitleString = require( 'string!RESISTANCE_IN_A_WIRE/resistance-in-a-wire.title' );

// a11y strings
var playAreaString = JoistA11yStrings.playAreaString;
var controlPanelString = JoistA11yStrings.controlPanelString;
Expand All @@ -37,7 +40,10 @@ define( function( require ) {
function ResistanceInAWireScreenView( model, tandem ) {

ScreenView.call( this, {
tandem: tandem
tandem: tandem,

// a11y
accessibleLabel: resistanceInAWireTitleString
} );

// a11y - Create and add the summary for this simulation, the first thing screen reader users encounter
Expand Down

0 comments on commit c9bde10

Please sign in to comment.