diff --git a/packages/block-editor/src/components/block-switcher/index.js b/packages/block-editor/src/components/block-switcher/index.js index f3f976262ea588..f73a5de543bd4a 100644 --- a/packages/block-editor/src/components/block-switcher/index.js +++ b/packages/block-editor/src/components/block-switcher/index.js @@ -218,14 +218,20 @@ export const BlockSwitcher = ( { clientIds } ) => { if ( invalidBlocks ) { return null; } + + const isSingleBlock = clientIds.length === 1; + const blockSwitcherLabel = isSingleBlock + ? blockTitle + : __( 'Multiple blocks selected' ); const hideDropdown = ! hasBlockStyles && ! canRemove; + if ( hideDropdown ) { return ( @@ -240,10 +246,7 @@ export const BlockSwitcher = ( { clientIds } ) => { ); } - const isSingleBlock = clientIds.length === 1; - const blockSwitcherLabel = isSingleBlock - ? blockTitle - : __( 'Multiple blocks selected' ); + const blockSwitcherDescription = isSingleBlock ? __( 'Change block type or style' ) : sprintf(