Skip to content

Commit

Permalink
remove uses of TANDEM_NAME_SUFFIX, https://github.com/phetsims/projec…
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Feb 27, 2024
1 parent 2e914a4 commit 0a7093a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions js/common/view/EnvironmentRadioButtonGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import PickRequired from '../../../../phet-core/js/types/PickRequired.js';
import { Node, NodeTranslationOptions, Path, Rectangle } from '../../../../scenery/js/imports.js';
import snowflakeSolidShape from '../../../../sherpa/js/fontawesome-5/snowflakeSolidShape.js';
import sunSolidShape from '../../../../sherpa/js/fontawesome-5/sunSolidShape.js';
import RectangularRadioButton from '../../../../sun/js/buttons/RectangularRadioButton.js';
import RectangularRadioButtonGroup, { RectangularRadioButtonGroupOptions } from '../../../../sun/js/buttons/RectangularRadioButtonGroup.js';
import Tandem from '../../../../tandem/js/Tandem.js';
import naturalSelection from '../../naturalSelection.js';
Expand Down Expand Up @@ -84,12 +83,12 @@ export default class EnvironmentRadioButtonGroup extends RectangularRadioButtonG
{
value: Environment.EQUATOR,
createNode: ( tandem: Tandem ) => equatorButtonContent,
tandemName: `equator${RectangularRadioButton.TANDEM_NAME_SUFFIX}`
tandemName: 'equatorRadioButton'
},
{
value: Environment.ARCTIC,
createNode: ( tandem: Tandem ) => arcticButtonContent,
tandemName: `arctic${RectangularRadioButton.TANDEM_NAME_SUFFIX}`
tandemName: 'arcticRadioButton'
}
];

Expand Down
9 changes: 4 additions & 5 deletions js/common/view/GraphChoiceRadioButtonGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.
import PickRequired from '../../../../phet-core/js/types/PickRequired.js';
import StrictOmit from '../../../../phet-core/js/types/StrictOmit.js';
import { Text, TextOptions } from '../../../../scenery/js/imports.js';
import AquaRadioButton from '../../../../sun/js/AquaRadioButton.js';
import VerticalAquaRadioButtonGroup, { VerticalAquaRadioButtonGroupOptions } from '../../../../sun/js/VerticalAquaRadioButtonGroup.js';
import naturalSelection from '../../naturalSelection.js';
import NaturalSelectionStrings from '../../NaturalSelectionStrings.js';
Expand Down Expand Up @@ -49,28 +48,28 @@ export default class GraphChoiceRadioButtonGroup extends VerticalAquaRadioButton
{
value: GraphChoice.POPULATION,
createNode: () => new Text( NaturalSelectionStrings.populationStringProperty, TEXT_OPTIONS ),
tandemName: `population${AquaRadioButton.TANDEM_NAME_SUFFIX}`
tandemName: 'populationRadioButton'
},

// Proportions
{
value: GraphChoice.PROPORTIONS,
createNode: () => new Text( NaturalSelectionStrings.proportionsStringProperty, TEXT_OPTIONS ),
tandemName: `proportions${AquaRadioButton.TANDEM_NAME_SUFFIX}`
tandemName: 'proportionsRadioButton'
},

// Pedigree
{
value: GraphChoice.PEDIGREE,
createNode: () => new Text( NaturalSelectionStrings.pedigreeStringProperty, TEXT_OPTIONS ),
tandemName: `pedigree${AquaRadioButton.TANDEM_NAME_SUFFIX}`
tandemName: 'pedigreeRadioButton'
},

// None
{
value: GraphChoice.NONE,
createNode: () => new Text( NaturalSelectionStrings.noneStringProperty, TEXT_OPTIONS ),
tandemName: `none${AquaRadioButton.TANDEM_NAME_SUFFIX}`
tandemName: 'noneRadioButton'
}
];

Expand Down

0 comments on commit 0a7093a

Please sign in to comment.