Skip to content

Commit

Permalink
pass createAriaValueText option to NumberControl for mass control ari…
Browse files Browse the repository at this point in the history
…a-valuetext, see #109
  • Loading branch information
mbarlow12 committed Jan 11, 2019
1 parent 24f4309 commit 5bb1f51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/gravity-force-lab/view/MassControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ define( function( require ) {
var inherit = require( 'PHET_CORE/inherit' );
var ISLCA11yStrings = require( 'INVERSE_SQUARE_LAW_COMMON/ISLCA11yStrings' );
var ISLCObjectControlPanel = require( 'INVERSE_SQUARE_LAW_COMMON/view/ISLCObjectControlPanel' );
// var MassDescriber = require( 'GRAVITY_FORCE_LAB/gravity-force-lab/view/describers/MassDescriber' );
var MassDescriber = require( 'GRAVITY_FORCE_LAB/gravity-force-lab/view/describers/MassDescriber' );
var PhetFont = require( 'SCENERY_PHET/PhetFont' );

// strings
Expand All @@ -37,7 +37,7 @@ define( function( require ) {
*/
// TODO: place tandem in options object
function MassControl( titleString, valueProperty, massRange, thumbColor, massEnum, tandem ) {
// var massDescriber = MassDescriber.getDescriber();
var massDescriber = MassDescriber.getDescriber();
var options = {
// panel options
fill: '#FDF498',
Expand All @@ -61,8 +61,8 @@ define( function( require ) {
keyboardStep: 50,
pageKeyboardStep: 100,
accessibleName: titleString,
accessibleValuePattern: valueKilogramsPatternString // {{value}} kilograms
// createAriaValueText: massDescriber.ariaValueTextCreator( massEnum )
// accessibleValuePattern: valueKilogramsPatternString, // {{value}} kilograms
createAriaValueText: massDescriber.ariaValueTextCreator( massEnum )

},

Expand Down

0 comments on commit 5bb1f51

Please sign in to comment.