From d74dfb97f9a8e3afddb3567703d3194fbf09b9fd Mon Sep 17 00:00:00 2001 From: Karthick M <97787966+karthick-murugan@users.noreply.github.com> Date: Wed, 8 Jan 2025 19:14:18 +0530 Subject: [PATCH 1/5] Fix Inconsistent Labels for Lightbox Feature (#68261) * Image size fix in lightbox * Revert "Image size fix in lightbox" This reverts commit 63f81c1e9cbb3b0513abca2b8cb579fef374ed7b. * Update the enlarge image icon label * Capslock updated * Feedback changes updated * Feedback changes * Feedback Changes * Feedback Changes * Feedback changes Co-authored-by: karthick-murugan Co-authored-by: afercia --- .../global-styles/image-settings-panel.js | 4 ++-- .../url-popover/image-url-input-ui.js | 6 ++--- packages/block-library/src/gallery/edit.js | 2 +- packages/block-library/src/image/index.php | 22 ++++++++----------- test/e2e/specs/editor/blocks/image.spec.js | 12 +++++----- 5 files changed, 21 insertions(+), 25 deletions(-) diff --git a/packages/block-editor/src/components/global-styles/image-settings-panel.js b/packages/block-editor/src/components/global-styles/image-settings-panel.js index 4ebc20ab201983..e6fa7a4414f6c8 100644 --- a/packages/block-editor/src/components/global-styles/image-settings-panel.js +++ b/packages/block-editor/src/components/global-styles/image-settings-panel.js @@ -61,14 +61,14 @@ export default function ImageSettingsPanel( { // "RESET" button ONLY when the user has explicitly set a value in the // Global Styles. hasValue={ () => !! value?.lightbox } - label={ __( 'Expand on click' ) } + label={ __( 'Enlarge on click' ) } onDeselect={ resetLightbox } isShownByDefault panelId={ panelId } > diff --git a/packages/block-editor/src/components/url-popover/image-url-input-ui.js b/packages/block-editor/src/components/url-popover/image-url-input-ui.js index c68cf5e58b9530..7a9414c1fd3c1a 100644 --- a/packages/block-editor/src/components/url-popover/image-url-input-ui.js +++ b/packages/block-editor/src/components/url-popover/image-url-input-ui.js @@ -265,14 +265,14 @@ const ImageURLInputUI = ( {
-

{ __( 'Expand on click' ) }

+

{ __( 'Enlarge on click' ) }

{ __( 'Scales the image with a lightbox effect' ) }