Skip to content

Commit

Permalink
add label content for radio buttons, see #374
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Nov 30, 2023
1 parent d29b805 commit 2b2ddaf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/layer-model/view/TemperatureUnitsControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,20 @@ class TemperatureUnitsControl extends VBox {
{
createNode: () => new Text( GreenhouseEffectStrings.temperature.units.kelvinStringProperty, textOptions ),
value: TemperatureUnits.KELVIN,
tandemName: 'kelvinRadioButton'
tandemName: 'kelvinRadioButton',
labelContent: GreenhouseEffectStrings.a11y.temperatureUnits.kelvinStringProperty
},
{
createNode: () => new Text( GreenhouseEffectStrings.temperature.units.celsiusStringProperty, textOptions ),
value: TemperatureUnits.CELSIUS,
tandemName: 'celsiusRadioButton'
tandemName: 'celsiusRadioButton',
labelContent: GreenhouseEffectStrings.a11y.temperatureUnits.celsiusStringProperty
},
{
createNode: () => new Text( GreenhouseEffectStrings.temperature.units.fahrenheitStringProperty, textOptions ),
value: TemperatureUnits.FAHRENHEIT,
tandemName: 'fahrenheitRadioButton'
tandemName: 'fahrenheitRadioButton',
labelContent: GreenhouseEffectStrings.a11y.temperatureUnits.fahrenheitStringProperty
}
];

Expand Down

0 comments on commit 2b2ddaf

Please sign in to comment.