Skip to content

Commit

Permalink
Update tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed Jul 12, 2023
1 parent 54d207f commit de4bedf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/edit-site/src/components/page-patterns/grid-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ function GridItem( { categoryId, item, ...props } ) {
{ item.type === PATTERNS && (
<Tooltip
position="top center"
text={ __(
'Theme & plugin patterns cannot be edited.'
) }
text={ __( 'This pattern cannot be edited.' ) }
>
<span className="edit-site-patterns__pattern-lock-icon">
<Icon icon={ lockSmall } size={ 24 } />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { useViewportMatch } from '@wordpress/compose';
import { useSelect } from '@wordpress/data';
import { getTemplatePartIcon } from '@wordpress/editor';
import { __ } from '@wordpress/i18n';
import { __, sprintf } from '@wordpress/i18n';
import { getQueryArgs } from '@wordpress/url';
import { file, starFilled, lockSmall } from '@wordpress/icons';

Expand Down Expand Up @@ -74,8 +74,10 @@ function ThemePatternsGroup( { categories, currentCategory, currentType } ) {
{ category.label }
<Tooltip
position="top center"
text={ __(
'Theme & plugin patterns cannot be edited.'
text={ sprintf(
// translators: %s: The pattern category name.
'"%s" patterns cannot be edited.',
category.label
) }
>
<span className="edit-site-sidebar-navigation-screen-pattern__lock-icon">
Expand Down

0 comments on commit de4bedf

Please sign in to comment.