diff --git a/packages/patterns/src/components/rename-pattern-category-modal.js b/packages/patterns/src/components/rename-pattern-category-modal.js index d8fbfc7b6887ba..3ab88d0d617df8 100644 --- a/packages/patterns/src/components/rename-pattern-category-modal.js +++ b/packages/patterns/src/components/rename-pattern-category-modal.js @@ -54,7 +54,9 @@ export default function RenamePatternCategoryModal( { // Check existing categories to avoid creating duplicates. if ( existingCategories.patternCategories.find( ( existingCategory ) => { - return existingCategory.label === name; + return ( + existingCategory.label.toLowerCase() === name.toLowerCase() + ); } ) ) { speak( __( 'This category already exists.' ), 'assertive' );