From 775e154adcea6b787c66672017378e023c6591ee Mon Sep 17 00:00:00 2001 From: zepumph Date: Wed, 23 Feb 2022 16:00:50 -0700 Subject: [PATCH] Use common code voicing for radio buttons, https://github.com/phetsims/ratio-and-proportion/issues/384 --- js/common/view/TickMarkViewRadioButtonGroup.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/js/common/view/TickMarkViewRadioButtonGroup.ts b/js/common/view/TickMarkViewRadioButtonGroup.ts index b9fc4f74..a27cbce2 100644 --- a/js/common/view/TickMarkViewRadioButtonGroup.ts +++ b/js/common/view/TickMarkViewRadioButtonGroup.ts @@ -7,7 +7,7 @@ */ import merge from '../../../../phet-core/js/merge.js'; -import { ParallelDOM, Path, PathOptions, voicingUtteranceQueue } from '../../../../scenery/js/imports.js'; +import { ParallelDOM, Path, PathOptions } from '../../../../scenery/js/imports.js'; import eyeSlashSolidShape from '../../../../sherpa/js/fontawesome-5/eyeSlashSolidShape.js'; import RectangularRadioButtonGroup from '../../../../sun/js/buttons/RectangularRadioButtonGroup.js'; import ActivationUtterance from '../../../../utterance-queue/js/ActivationUtterance.js'; @@ -16,7 +16,6 @@ import ratioAndProportionStrings from '../../ratioAndProportionStrings.js'; import TickMarkView from './TickMarkView.js'; import EnumerationProperty from '../../../../axon/js/EnumerationProperty.js'; import optionize from '../../../../phet-core/js/optionize.js'; -import ResponsePacket from '../../../../utterance-queue/js/ResponsePacket.js'; // constants const ICON_SCALE = 0.45; @@ -81,20 +80,12 @@ class TickMarkViewRadioButtonGroup extends RectangularRadioButtonGroup { // TODO: likely we need this to run on user input, not the model Property, https://github.com/phetsims/ratio-and-proportion/issues/363 const currentRadioButtonItem = _.find( radioButtonItemData, item => item.value === tickMarkView )!; assert && assert( currentRadioButtonItem, 'radio button item expected' ); - voicingResponsePacket.nameResponse = currentRadioButtonItem.labelContent; - voicingResponsePacket.contextResponse = currentRadioButtonItem.voicingContextResponse; - voicingUtteranceQueue.addToBack( tickMarkVoicingContextResponseUtterance ); - // interactive description alert tickMarkContextResponseUtterance.alert = currentRadioButtonItem.interactiveDescriptionContextResponse; this.alertDescriptionUtterance( tickMarkContextResponseUtterance );