Skip to content

Commit

Permalink
add sync tooltip (#52458)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaxonF authored and tellthemachines committed Jul 10, 2023
1 parent b8faaa8 commit 0fd4e20
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions packages/edit-site/src/components/page-patterns/grid-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,19 @@ function GridItem( { categoryId, item, ...props } ) {
className="edit-site-patterns__pattern-title"
>
{ itemIcon && (
<Icon
className="edit-site-patterns__pattern-icon"
icon={ itemIcon }
/>
<Tooltip
position="top center"
text={ __(
'Editing this pattern will also update anywhere it is used'
) }
>
<span>
<Icon
className="edit-site-patterns__pattern-icon"
icon={ itemIcon }
/>
</span>
</Tooltip>
) }
<Flex as="span" gap={ 0 } justify="left">
{ item.title }
Expand Down

0 comments on commit 0fd4e20

Please sign in to comment.