From c9bde10b1fa0a524fdb29abf488477bfdb1e3bc0 Mon Sep 17 00:00:00 2001 From: Jesse Greenberg Date: Fri, 9 Feb 2018 12:52:07 -0700 Subject: [PATCH] add screen view label, see #126 --- .../view/ResistanceInAWireScreenView.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/resistance-in-a-wire/view/ResistanceInAWireScreenView.js b/js/resistance-in-a-wire/view/ResistanceInAWireScreenView.js index 9281d5b..612b17f 100644 --- a/js/resistance-in-a-wire/view/ResistanceInAWireScreenView.js +++ b/js/resistance-in-a-wire/view/ResistanceInAWireScreenView.js @@ -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; @@ -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