Skip to content

Commit

Permalink
Adding tandem-based accessible name to pool scale height slider, see p…
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed May 29, 2024
1 parent 7521809 commit 626c4bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/common/view/PoolScaleHeightControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export default class PoolScaleHeightControl extends NumberControl {
orientation: Orientation.VERTICAL,
thumbNode: thumbNode,
thumbYOffset: thumbNode.height / 2,
trackSize: new Dimension2( 3, sliderTrackHeight )
trackSize: new Dimension2( 3, sliderTrackHeight ),
// NumberControl does not support accessibleName, so we pass the tandem name of the NumberControl to the slider
accessibleName: Tandem.toAccessibleName( providedOptions, 'Control' )
},
titleNodeOptions: { tandem: Tandem.OPT_OUT },
numberDisplayOptions: { tandem: Tandem.OPT_OUT },
Expand Down

0 comments on commit 626c4bd

Please sign in to comment.