From 9236d06c725d84d28254e3576d175004ae513974 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Wed, 8 Jan 2025 01:27:33 +0530 Subject: [PATCH] fix: Have static short label and updated long label to Add --- packages/editor/src/components/document-tools/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/editor/src/components/document-tools/index.js b/packages/editor/src/components/document-tools/index.js index 71a8b1b094a135..cc287b4cce38b0 100644 --- a/packages/editor/src/components/document-tools/index.js +++ b/packages/editor/src/components/document-tools/index.js @@ -96,11 +96,8 @@ function DocumentTools( { className, disableBlockTools = false } ) { ); /* translators: button label text should, if possible, be under 16 characters. */ - const longLabel = _x( - 'Block Inserter', - 'Generic label for block inserter button' - ); - const shortLabel = ! isInserterOpened ? __( 'Add' ) : __( 'Close' ); + const longLabel = _x( 'Add', 'Generic label for block inserter button' ); + const shortLabel = __( 'Add' ); return ( // Some plugins expect and use the `edit-post-header-toolbar` CSS class to