Skip to content

Commit

Permalink
Update locked pattern tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed Jul 11, 2023
1 parent 0c28bc2 commit 54d207f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/edit-site/src/components/page-patterns/grid-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ function GridItem( { categoryId, item, ...props } ) {
}

if ( isNonUserPattern ) {
ariaDescriptions.push( __( 'Theme patterns cannot be edited.' ) );
ariaDescriptions.push(
__( 'Theme & plugin patterns cannot be edited.' )
);
}

const itemIcon =
Expand Down Expand Up @@ -209,7 +211,7 @@ function GridItem( { categoryId, item, ...props } ) {
<Tooltip
position="top center"
text={ __(
'Theme patterns cannot be edited.'
'Theme & plugin patterns cannot be edited.'
) }
>
<span className="edit-site-patterns__pattern-lock-icon">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function ThemePatternsGroup( { categories, currentCategory, currentType } ) {
<Tooltip
position="top center"
text={ __(
'Theme patterns cannot be edited.'
'Theme & plugin patterns cannot be edited.'
) }
>
<span className="edit-site-sidebar-navigation-screen-pattern__lock-icon">
Expand Down

0 comments on commit 54d207f

Please sign in to comment.