diff --git a/packages/block-library/src/post-navigation-link/edit.js b/packages/block-library/src/post-navigation-link/edit.js index 4d144397299889..6e8a73396db595 100644 --- a/packages/block-library/src/post-navigation-link/edit.js +++ b/packages/block-library/src/post-navigation-link/edit.js @@ -25,6 +25,11 @@ import { __, _x } from '@wordpress/i18n'; import { useSelect } from '@wordpress/data'; import { store as coreStore } from '@wordpress/core-data'; +/** + * Internal dependencies + */ +import { useToolsPanelDropdownMenuProps } from '../utils/hooks'; + export default function PostNavigationLinkEdit( { context: { postType }, attributes: { @@ -48,6 +53,7 @@ export default function PostNavigationLinkEdit( { }; const displayArrow = arrowMap[ arrow ]; + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); if ( showTitle ) { placeholder = isNext @@ -95,13 +101,17 @@ export default function PostNavigationLinkEdit( { return ( <> - + !! showTitle } label={ __( 'Display the title as a link' ) } onDeselect={ () => setAttributes( { showTitle: false } ) } + isShownByDefault > !! arrow } label={ __( 'Arrow' ) } onDeselect={ () => setAttributes( { arrow: 'none' } ) } + isShownByDefault >