Skip to content

Commit

Permalink
rename accessibleLabel --> labelContent, phetsims/scenery#748
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph authored and jessegreenberg committed Apr 21, 2021
1 parent 6b3429b commit 253df3d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions js/moleculesandlight/view/MoleculeSelectionPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,56 +134,56 @@ define( function( require ) {
node: createRadioButtonContent( controlPanelCarbonMonoxideString, CO_FORMULA_STRING, new MoleculeNode( new CO(), MODEL_VIEW_TRANSFORM ) ),
value: PhotonTarget.SINGLE_CO_MOLECULE,
tandemName: 'singleCOMoleculeRadioButton',
accessibleLabel: controlPanelCarbonMonoxideString,
labelContent: controlPanelCarbonMonoxideString,
accessibleDescription: carbonMonoxideDescriptionString
},
{
node: createRadioButtonContent( controlPanelNitrogenString, N2_FORMULA_STRING, new MoleculeNode( new N2(), MODEL_VIEW_TRANSFORM ) ),
value: PhotonTarget.SINGLE_N2_MOLECULE,
tandemName: 'singleN2MoleculeRadioButton',
accessibleLabel: controlPanelNitrogenString,
labelContent: controlPanelNitrogenString,
accessibleDescription: nitrogenDescriptionString
},
{
node: createRadioButtonContent( controlPanelOxygenString, O2_FORMULA_STRING, new MoleculeNode( new O2(), MODEL_VIEW_TRANSFORM ) ),
value: PhotonTarget.SINGLE_O2_MOLECULE,
tandemName: 'singleO2MoleculeRadioButton',
accessibleLabel: controlPanelOxygenString,
labelContent: controlPanelOxygenString,
accessibleDescription: oxygenDescriptionString
},
{
node: createRadioButtonContent( controlPanelCarbonDioxideString, CO2_FORMULA_STRING, new MoleculeNode( new CO2(), MODEL_VIEW_TRANSFORM ) ),
value: PhotonTarget.SINGLE_CO2_MOLECULE,
tandemName: 'singleCO2MoleculeRadioButton',
accessibleLabel: controlPanelCarbonDioxideString,
labelContent: controlPanelCarbonDioxideString,
accessibleDescription: carbonDioxideDescriptionString
},
{
node: createRadioButtonContent( controlPanelMethaneString, CH4_FORMULA_STRING, new MoleculeNode( new CH4(), MODEL_VIEW_TRANSFORM ) ),
value: PhotonTarget.SINGLE_CH4_MOLECULE,
tandemName: 'singleCH4MoleculeRadioButton',
accessibleLabel: controlPanelMethaneString,
labelContent: controlPanelMethaneString,
accessibleDescription: methaneDescriptionString
},
{
node: createRadioButtonContent( controlPanelWaterString, H20_FORMULA_STRING, new MoleculeNode( new H2O(), MODEL_VIEW_TRANSFORM ) ),
value: PhotonTarget.SINGLE_H2O_MOLECULE,
tandemName: 'singleH2OMoleculeRadioButton',
accessibleLabel: controlPanelWaterString,
labelContent: controlPanelWaterString,
accessibleDescription: waterDescriptionString
},
{
node: createRadioButtonContent( controlPanelNitrogenDioxideString, NO2_FORMULA_STRING, new MoleculeNode( new NO2(), MODEL_VIEW_TRANSFORM ) ),
value: PhotonTarget.SINGLE_NO2_MOLECULE,
tandemName: 'singleNO2MoleculeRadioButton',
accessibleLabel: controlPanelNitrogenDioxideString,
labelContent: controlPanelNitrogenDioxideString,
accessibleDescription: nitrogenDioxideDescriptionString
},
{
node: createRadioButtonContent( controlPanelOzoneString, O3_FORMULA_STRING, new MoleculeNode( new O3(), MODEL_VIEW_TRANSFORM ) ),
value: PhotonTarget.SINGLE_O3_MOLECULE,
tandemName: 'singleO3MoleculeRadioButton',
accessibleLabel: controlPanelOzoneString,
labelContent: controlPanelOzoneString,
accessibleDescription: ozoneDescriptionString
}
];
Expand Down Expand Up @@ -224,7 +224,7 @@ define( function( require ) {
tandem: tandem,
tagName: 'div',
labelTagName: 'h3',
accessibleLabel: moleculesString,
labelContent: moleculesString,
accessibleDescription: moleculesPanelDescriptionString,
prependLabels: true
} );
Expand Down
2 changes: 1 addition & 1 deletion js/moleculesandlight/view/ObservationWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ define( function( require ) {
// a11y
tagName: 'div',
labelTagName: 'h3',
accessibleLabel: 'Observation Window',
labelContent: 'Observation Window',
prependLabels: true
} );

Expand Down
10 changes: 5 additions & 5 deletions js/moleculesandlight/view/QuadEmissionFrequencyControlPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ define( function( require ) {
Node.call( this, {
tagName: 'div',
labelTagName: 'h3',
accessibleLabel: lightSourceString,
labelContent: lightSourceString,
accessibleDescription: lightSourceDescriptionString,
prependLabels: true
} );
Expand Down Expand Up @@ -114,7 +114,7 @@ define( function( require ) {
tandem: radioButtonGroupTandem.createTandem( microwaveTandemName ).createTandem( 'microwaveRadioButtonLabel' )
} ),
tandemName: microwaveTandemName,
accessibleLabel: quadWavelengthSelectorMicrowaveString
labelContent: quadWavelengthSelectorMicrowaveString
}, {
node: createRadioButtonContent( new Image( heatLampImage ), infraredPhotonNode ),
value: WavelengthConstants.IR_WAVELENGTH,
Expand All @@ -123,7 +123,7 @@ define( function( require ) {
tandem: radioButtonGroupTandem.createTandem( infraredTandemName ).createTandem( 'infraredRadioButtonLabel' )
} ),
tandemName: infraredTandemName,
accessibleLabel: quadWavelengthSelectorInfraredString
labelContent: quadWavelengthSelectorInfraredString
}, {
node: createRadioButtonContent( new Image( flashlight2Image ), visiblePhotonNode ),
value: WavelengthConstants.VISIBLE_WAVELENGTH,
Expand All @@ -132,7 +132,7 @@ define( function( require ) {
tandem: radioButtonGroupTandem.createTandem( visibleTandemName ).createTandem( 'visibleRadioButtonLabel' )
} ),
tandemName: visibleTandemName,
accessibleLabel: quadWavelengthSelectorVisibleString
labelContent: quadWavelengthSelectorVisibleString
}, {
node: createRadioButtonContent( new Image( uvLight2 ), ultravioletPhotonNode ),
value: WavelengthConstants.UV_WAVELENGTH,
Expand All @@ -141,7 +141,7 @@ define( function( require ) {
tandem: radioButtonGroupTandem.createTandem( ultravioletTandemName ).createTandem( 'ultravioletRadioButtonLabel' )
} ),
tandemName: ultravioletTandemName,
accessibleLabel: quadWavelengthSelectorUltravioletString
labelContent: quadWavelengthSelectorUltravioletString
} ];

// Scale the radio button text. This is done mostly to support translations.
Expand Down

0 comments on commit 253df3d

Please sign in to comment.