Skip to content

Commit

Permalink
ToolsPanelItem updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rinkalpagdar committed Jan 15, 2025
1 parent bbd308b commit 5238392
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions packages/block-library/src/post-navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,27 @@ export default function PostNavigationLinkEdit( {
/>
</ToolsPanelItem>
{ showTitle && (
<ToggleControl
__nextHasNoMarginBottom
label={ __(
'Include the label as part of the link'
) }
checked={ !! linkLabel }
onChange={ () =>
setAttributes( {
linkLabel: ! linkLabel,
} )
}
isShownByDefault
/>
<ToolsPanelItem
hasValue={ () => !! linkLabel }
label={ __( 'Include the label as part of the link' ) }
onDeselect={ () => setAttributes( { linkLabel: false } ) }
>

<ToggleControl
__nextHasNoMarginBottom
label={ __(
'Include the label as part of the link'
) }
checked={ !! linkLabel }
onChange={ () =>
setAttributes( {
linkLabel: ! linkLabel,
} )
}
isShownByDefault
/>

</ToolsPanelItem>
) }
<ToolsPanelItem
hasValue={ () => !! arrow }
Expand Down

0 comments on commit 5238392

Please sign in to comment.