Skip to content

Commit

Permalink
a11y names for checkbox items, see #109
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarlow12 committed Oct 26, 2018
1 parent 404738b commit e80f6a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/gravity-force-lab/view/GravityForceLabScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,21 @@ define( function( require ) {
massControlsNode.addChild( massControl2 );

var TEXT_SIZE = 15;
// TODO: implement correct string usage and review a11 best practices
// - double check enabling/disabling checkboxes
var checkboxItems = [
new ISLCCheckboxItem( constantSizeString, model.constantRadiusProperty, {
accessibleName: 'Constant Radius',
textSize: TEXT_SIZE,
tandem: tandem.createTandem( 'constantRadiusCheckbox' )
} ),
new ISLCCheckboxItem( forceValuesString, model.forceValuesProperty, {
accessibleName: 'Force Values',
textSize: TEXT_SIZE,
tandem: tandem.createTandem( 'forceValuesCheckbox' )
} ),
new ISLCCheckboxItem( scientificNotationString, model.scientificNotationProperty, {
accessibleName: 'Scientific Notation',
textSize: TEXT_SIZE,
tandem: tandem.createTandem( 'scientificNotationCheckbox' )
} )
Expand Down

0 comments on commit e80f6a1

Please sign in to comment.