From 52383920c01e138e2680dec01ddbce7ebbd36498 Mon Sep 17 00:00:00 2001 From: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com> Date: Wed, 15 Jan 2025 09:48:15 +0530 Subject: [PATCH] ToolsPanelItem updated --- .../src/post-navigation-link/edit.js | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/packages/block-library/src/post-navigation-link/edit.js b/packages/block-library/src/post-navigation-link/edit.js index 6e8a73396db59..f0da48e48cf1a 100644 --- a/packages/block-library/src/post-navigation-link/edit.js +++ b/packages/block-library/src/post-navigation-link/edit.js @@ -128,19 +128,27 @@ export default function PostNavigationLinkEdit( { /> { showTitle && ( - - setAttributes( { - linkLabel: ! linkLabel, - } ) - } - isShownByDefault - /> + !! linkLabel } + label={ __( 'Include the label as part of the link' ) } + onDeselect={ () => setAttributes( { linkLabel: false } ) } + > + + + setAttributes( { + linkLabel: ! linkLabel, + } ) + } + isShownByDefault + /> + + ) } !! arrow }