From 0c8226bc50024a7ccf80f75dc7551000c049362b Mon Sep 17 00:00:00 2001 From: jbphet Date: Thu, 21 Jul 2022 11:14:40 -0600 Subject: [PATCH] made button appearance options into sub-options for better typing, see https://github.com/phetsims/chipper/issues/1253, https://github.com/phetsims/sun/issues/754, and https://github.com/phetsims/sun/issues/772 --- js/common/view/EnvironmentRadioButtonGroup.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/js/common/view/EnvironmentRadioButtonGroup.js b/js/common/view/EnvironmentRadioButtonGroup.js index b49bc21f..17e65f00 100644 --- a/js/common/view/EnvironmentRadioButtonGroup.js +++ b/js/common/view/EnvironmentRadioButtonGroup.js @@ -39,12 +39,14 @@ class EnvironmentRadioButtonGroup extends RectangularRadioButtonGroup { spacing: 8, radioButtonOptions: { cornerRadius: NaturalSelectionConstants.CORNER_RADIUS, - selectedStroke: NaturalSelectionColors.RADIO_BUTTON_SELECTED_STROKE, - deselectedStroke: NaturalSelectionColors.RADIO_BUTTON_DESELECTED_STROKE, - selectedLineWidth: 5, - deselectedLineWidth: 1.5, xMargin: 0, // Set to 0 because we will create our own backgrounds, see below. - yMargin: 0 // Set to 0 because we will create our own backgrounds, see below. + yMargin: 0, // Set to 0 because we will create our own backgrounds, see below. + buttonAppearanceStrategyOptions: { + selectedStroke: NaturalSelectionColors.RADIO_BUTTON_SELECTED_STROKE, + deselectedStroke: NaturalSelectionColors.RADIO_BUTTON_DESELECTED_STROKE, + selectedLineWidth: 5, + deselectedLineWidth: 1.5 + } }, // phet-io