Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ function BlockPatternsList(
onHover,
onClickPattern,
orientation,
label = __( 'Block patterns' ),
category,
label = __( 'Patterns' ),
showTitlesAsTooltip,
pagingProps,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const usePatternsState = (
createSuccessNotice(
sprintf(
/* translators: %s: block pattern title. */
__( 'Block pattern "%s" inserted.' ),
__( 'Pattern "%s" inserted.' ),
pattern.title
),
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ function InserterSearchResults( {

const patternsUI = !! filteredBlockPatterns.length && (
<InserterPanel
title={
<VisuallyHidden>{ __( 'Block patterns' ) }</VisuallyHidden>
}
title={ <VisuallyHidden>{ __( 'Patterns' ) }</VisuallyHidden> }
>
<div className="block-editor-inserter__quick-inserter-patterns">
<BlockPatternsList
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/various/allowed-patterns.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test.describe( 'Allowed Patterns', () => {

await expect(
page
.getByRole( 'listbox', { name: 'Block patterns' } )
.getByRole( 'listbox', { name: 'Patterns' } )
.getByRole( 'option' )
).toHaveText( [
'Test: Single heading',
Expand Down Expand Up @@ -75,7 +75,7 @@ test.describe( 'Allowed Patterns', () => {

await expect(
page
.getByRole( 'listbox', { name: 'Block patterns' } )
.getByRole( 'listbox', { name: 'Patterns' } )
.getByRole( 'option' )
).toHaveText( [ 'Test: Single heading' ] );
} );
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/specs/editor/various/inserting-blocks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ test.describe( 'Inserting blocks (@firefox, @webkit)', () => {
);

await page.hover(
`role=listbox[name="Block Patterns"i] >> role=option[name="${ PATTERN_NAME }"i]`
`role=listbox[name="Patterns"i] >> role=option[name="${ PATTERN_NAME }"i]`
);

// FIXME: I think we should show the indicator when hovering on patterns as well?
Expand Down Expand Up @@ -333,7 +333,7 @@ test.describe( 'Inserting blocks (@firefox, @webkit)', () => {
PATTERN_NAME
);
await page.hover(
`role=listbox[name="Block Patterns"i] >> role=option[name="${ PATTERN_NAME }"i]`
`role=listbox[name="Patterns"i] >> role=option[name="${ PATTERN_NAME }"i]`
);

const paragraphBoundingBox = await paragraphBlock.boundingBox();
Expand Down Expand Up @@ -409,7 +409,7 @@ test.describe( 'Inserting blocks (@firefox, @webkit)', () => {
);

await page.hover(
`role=listbox[name="Block Patterns"i] >> role=option[name="${ PATTERN_NAME }"i]`
`role=listbox[name="Patterns"i] >> role=option[name="${ PATTERN_NAME }"i]`
);

const paragraphBoundingBox = await paragraphBlock.boundingBox();
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/various/patterns.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ test.describe( 'Synced pattern', () => {

await expect(
page
.getByRole( 'listbox', { name: 'Block patterns' } )
.getByRole( 'listbox', { name: 'Patterns' } )
.getByRole( 'option', {
name: 'Awesome empty',
} )
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/site-editor/template-part.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ test.describe( 'Template Part', () => {
await editor.insertBlock( { name: 'core/template-part' } );
await editor.canvas.locator( 'role=button[name="Choose"i]' ).click();
await page.click(
'role=listbox[name="Block Patterns"i] >> role=option[name="header"i]'
'role=listbox[name="Patterns"i] >> role=option[name="header"i]'
);

// There are now two header template parts.
Expand Down
2 changes: 1 addition & 1 deletion widgets/welcome/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function WelcomeBanner() {
'Author rich content with blocks and patterns'
) }
description={ __(
'Block patterns are pre-configured block layouts. Use them to get inspired or create new pages in a flash.'
'Patterns are pre-configured block layouts. Use them to get inspired or create new pages in a flash.'
) }
ctaUrl="/wp-admin/post-new.php?post_type=page"
ctaLabel={ __( 'Add a new page' ) }
Expand Down
Loading