Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page List: Update the edit/customize copy #47549

Merged
merged 1 commit into from
Jan 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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