Skip to content

Commit

Permalink
Page List: Update the edit/customize copy (#47549)
Browse files Browse the repository at this point in the history
Co-authored-by: scruffian <ben@escruffian.com>
  • Loading branch information
scruffian and scruffian authored Jan 30, 2023
1 parent 01cb2bd commit aac398e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/block-library/src/page-list/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const MAX_PAGE_COUNT = 100;
const NOOP = () => {};

const convertDescription = __(
'This menu is automatically kept in sync with pages on your site. You can manage the menu yourself by clicking customize below.'
'This menu is automatically kept in sync with pages on your site. You can manage the menu yourself by clicking "Edit" below.'
);

function BlockContent( {
Expand Down Expand Up @@ -117,7 +117,7 @@ function ConvertToLinksModal( { onClick, disabled } ) {
{ isOpen && (
<Modal
onRequestClose={ closeModal }
title={ __( 'Customize this menu' ) }
title={ __( 'Edit this menu' ) }
className={ 'wp-block-page-list-modal' }
aria={ {
describedby: 'wp-block-page-list-modal__description',
Expand All @@ -135,7 +135,7 @@ function ConvertToLinksModal( { onClick, disabled } ) {
disabled={ disabled }
onClick={ onClick }
>
{ __( 'Customize' ) }
{ __( 'Edit' ) }
</Button>
</div>
</Modal>
Expand Down Expand Up @@ -319,14 +319,14 @@ export default function PageListEdit( {
</PanelBody>
) }
{ allowConvertToLinks && (
<PanelBody title={ __( 'Customize this menu' ) }>
<PanelBody title={ __( 'Edit this menu' ) }>
<p>{ convertDescription }</p>
<Button
variant="primary"
disabled={ ! hasResolvedPages }
onClick={ convertToNavigationLinks }
>
{ __( 'Customize' ) }
{ __( 'Edit' ) }
</Button>
</PanelBody>
) }
Expand Down

0 comments on commit aac398e

Please sign in to comment.