From bcbe0d7b302c0fbe861bc2da7f85c7fa85b11e3b Mon Sep 17 00:00:00 2001 From: Utsav Patel Date: Tue, 30 Jul 2024 23:10:19 +0530 Subject: [PATCH] remove: speak from device menu selection --- packages/editor/src/components/preview-dropdown/index.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/editor/src/components/preview-dropdown/index.js b/packages/editor/src/components/preview-dropdown/index.js index e8c48a739d29ba..24b6a8550623db 100644 --- a/packages/editor/src/components/preview-dropdown/index.js +++ b/packages/editor/src/components/preview-dropdown/index.js @@ -21,7 +21,6 @@ import { store as preferencesStore } from '@wordpress/preferences'; */ import { store as editorStore } from '../../store'; import PostPreviewButton from '../post-preview-button'; -import { speak } from '@wordpress/a11y'; export default function PreviewDropdown( { forceIsAutosaveable, disabled } ) { const { deviceType, homeUrl, isTemplate, isViewable, showIconLabels } = @@ -110,13 +109,6 @@ export default function PreviewDropdown( { forceIsAutosaveable, disabled } ) { */ const onSelect = ( value ) => { setDeviceType( value ); - if ( value === 'Desktop' ) { - speak( __( 'Desktop selected' ), 'assertive' ); - } else if ( value === 'Tablet' ) { - speak( __( 'Tablet selected' ), 'assertive' ); - } else { - speak( __( 'Mobile selected' ), 'assertive' ); - } }; return (