Skip to content

Commit

Permalink
Reposition pattern detail icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed Feb 26, 2024
1 parent a4fdeb2 commit fbd3789
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions packages/edit-site/src/components/page-patterns/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,26 @@ function Title( { item, categoryId } ) {
}
return (
<HStack alignment="center" justify="flex-start" spacing={ 2 }>
<Flex
as="div"
gap={ 0 }
justify="left"
className="edit-site-patterns__pattern-title"
>
{ item.type === PATTERN_TYPES.theme ? (
item.title
) : (
<Button
variant="link"
onClick={ onClick }
// Required for the grid's roving tab index system.
// See https://github.com/WordPress/gutenberg/pull/51898#discussion_r1243399243.
tabIndex="-1"
>
{ item.title || item.name }
</Button>
) }
</Flex>
{ itemIcon && ! isNonUserPattern && (
<Tooltip
placement="top"
Expand All @@ -235,26 +255,6 @@ function Title( { item, categoryId } ) {
/>
</Tooltip>
) }
<Flex
as="div"
gap={ 0 }
justify="left"
className="edit-site-patterns__pattern-title"
>
{ item.type === PATTERN_TYPES.theme ? (
item.title
) : (
<Button
variant="link"
onClick={ onClick }
// Required for the grid's roving tab index system.
// See https://github.com/WordPress/gutenberg/pull/51898#discussion_r1243399243.
tabIndex="-1"
>
{ item.title || item.name }
</Button>
) }
</Flex>
</HStack>
);
}
Expand Down

0 comments on commit fbd3789

Please sign in to comment.