Skip to content

Commit

Permalink
phet-io updates from staticMaterial regressions, #271
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Jul 18, 2024
1 parent 08a4bb6 commit de39fec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export default class BuoyancyApplicationsScreenView extends BuoyancyScreenView<B
visibleProperty: new GatedVisibleProperty( customDensityControlVisibleProperty, customBottleDensityControlTandem ),
sliderOptions: {
accessibleName: DensityBuoyancyCommonStrings.densityStringProperty,
phetioLinkedProperty: model.bottle.materialInsideProperty.customMaterial.densityProperty,
thumbNode: new PrecisionSliderThumb( {
tandem: customBottleDensityControlTandem.createTandem( 'slider' ).createTandem( 'thumbNode' )
} )
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/FluidDensityControlNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class FluidDensityControlNode extends ComboNumberControl<Material
font: DensityBuoyancyCommonConstants.COMBO_BOX_ITEM_FONT,
maxWidth: 160
} ),
tandemName: `${material.tandem.name}Item`,
tandemName: `${material.tandem.name.replace( 'Material', '' )}Item`,
a11yName: material.nameProperty,
comboBoxListItemNodeOptions: {
visible: !options.invisibleMaterials.includes( material )
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/GravityControlNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class GravityControlNode extends ComboNumberControl<Gravity> {
font: DensityBuoyancyCommonConstants.COMBO_BOX_ITEM_FONT,
maxWidth: 160
} ),
tandemName: `${gravity.tandem.name}Item`,
tandemName: `${gravity.tandem.name.replace( 'Gravity', '' )}Item`,
a11yName: gravity.nameProperty
};
} ),
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/MaterialControlNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class MaterialControlNode extends VBox {
font: DensityBuoyancyCommonConstants.COMBO_BOX_ITEM_FONT,
maxWidth: comboMaxWidth
} ),
tandemName: `${material.tandem.name}Item`,
tandemName: `${material.tandem.name.replace( 'Material', '' )}Item`,
a11yName: material.nameProperty
};
};
Expand Down

0 comments on commit de39fec

Please sign in to comment.