From e70aa1a5e7126b1a3096f63cf31dd8ab062d56aa Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Wed, 15 Jan 2025 11:53:18 +0100 Subject: [PATCH] Use the term menu instead of navigation in nav elements labels. --- .../edit/use-generate-default-navigation-title.js | 8 ++++---- .../components/global-styles/screen-revisions/index.js | 2 +- packages/edit-site/src/components/pagination/index.js | 2 +- .../site-editor/user-global-styles-revisions.spec.js | 4 +--- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/block-library/src/navigation/edit/use-generate-default-navigation-title.js b/packages/block-library/src/navigation/edit/use-generate-default-navigation-title.js index 0a134a256e6646..9784a5fd75a6b4 100644 --- a/packages/block-library/src/navigation/edit/use-generate-default-navigation-title.js +++ b/packages/block-library/src/navigation/edit/use-generate-default-navigation-title.js @@ -50,12 +50,12 @@ export default function useGenerateDefaultNavigationTitle( clientId ) { const title = area ? sprintf( - // translators: %s: the name of a menu (e.g. Header navigation). - __( '%s navigation' ), + // translators: %s: the name of a menu (e.g. Header menu). + __( '%s menu' ), area ) - : // translators: 'navigation' as in website navigation. - __( 'Navigation' ); + : // translators: 'menu' as in website navigation menu. + __( 'Menu' ); // Determine how many menus start with the automatic title. const matchingMenuTitleCount = [ diff --git a/packages/edit-site/src/components/global-styles/screen-revisions/index.js b/packages/edit-site/src/components/global-styles/screen-revisions/index.js index a50b8f13d55cc2..7c5b0f54c8e6d6 100644 --- a/packages/edit-site/src/components/global-styles/screen-revisions/index.js +++ b/packages/edit-site/src/components/global-styles/screen-revisions/index.js @@ -174,7 +174,7 @@ function ScreenRevisions() { changePage={ setCurrentPage } totalItems={ revisionsCount } disabled={ isLoading } - label={ __( 'Global Styles pagination navigation' ) } + label={ __( 'Global Styles pagination' ) } /> ) } diff --git a/packages/edit-site/src/components/pagination/index.js b/packages/edit-site/src/components/pagination/index.js index 5d6ce852d5a4c4..c49182d7b0c714 100644 --- a/packages/edit-site/src/components/pagination/index.js +++ b/packages/edit-site/src/components/pagination/index.js @@ -22,7 +22,7 @@ export default function Pagination( { className, disabled = false, buttonVariant = 'tertiary', - label = __( 'Pagination Navigation' ), + label = __( 'Pagination' ), } ) { return ( { } await userGlobalStylesRevisions.openStylesPanel(); await page.getByRole( 'button', { name: 'Revisions' } ).click(); - const pagination = page.getByLabel( - 'Global Styles pagination navigation' - ); + const pagination = page.getByLabel( 'Global Styles pagination' ); await expect( pagination ).toContainText( '1 of 2' ); await pagination.getByRole( 'button', { name: 'Next page' } ).click(); await expect( pagination ).toContainText( '2 of 2' );