Skip to content

Commit

Permalink
Site Editor: Unify the delete button style in the dropdown menu with red
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jul 13, 2023
1 parent 032b261 commit 323b05c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/edit-site/src/components/page-patterns/grid-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ function GridItem( { categoryId, item, ...props } ) {
/>
{ isCustomPattern && (
<MenuItem
isDestructive={ ! hasThemeFile }
isTertiary={ ! hasThemeFile }
onClick={ () =>
setIsDeleteDialogOpen( true )
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export default function ScreenNavigationMoreMenu( props ) {
>
{ __( 'Duplicate' ) }
</MenuItem>
</MenuGroup>
<MenuGroup>
<MenuItem
isDestructive
isTertiary
onClick={ () => {
openDeleteModal();

Expand Down

0 comments on commit 323b05c

Please sign in to comment.