Skip to content

Commit

Permalink
Feedback changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rinkalpagdar committed Jan 17, 2025
1 parent 5238392 commit 0bd80e2
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions packages/block-library/src/post-navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,28 +130,30 @@ export default function PostNavigationLinkEdit( {
{ showTitle && (
<ToolsPanelItem
hasValue={ () => !! linkLabel }
label={ __( 'Include the label as part of the link' ) }
onDeselect={ () => setAttributes( { linkLabel: false } ) }
label={ __(
'Include the label as part of the link'
) }
onDeselect={ () =>
setAttributes( { linkLabel: false } )
}
isShownByDefault
>

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

<ToggleControl
__nextHasNoMarginBottom
label={ __(
'Include the label as part of the link'
) }
checked={ !! linkLabel }
onChange={ () =>
setAttributes( {
linkLabel: ! linkLabel,
} )
}
/>
</ToolsPanelItem>
) }
<ToolsPanelItem
hasValue={ () => !! arrow }
hasValue={ () => arrow !== 'none' }
label={ __( 'Arrow' ) }
onDeselect={ () => setAttributes( { arrow: 'none' } ) }
isShownByDefault
Expand Down

0 comments on commit 0bd80e2

Please sign in to comment.