Skip to content

Commit

Permalink
Fix z-index of rename modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Sep 8, 2023
1 parent 2d490ca commit 4ddaad0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function TemplateActions( {
template?.type === 'wp_template' ||
template?.type === 'wp_template_part';

if ( ! isTemplate && ! isRemovable( template ) && ! isUserPattern ) {
if ( ! isTemplate && ! isRemovable && ! isUserPattern ) {
return null;
}

Expand Down
5 changes: 5 additions & 0 deletions packages/edit-site/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,8 @@ body.js.site-editor-php {
}

@include wordpress-admin-schemes();

// @TODO this is here because the rename dropdown popover is open at the same time as the rename modal. The latter has to be higher.
.edit-site-list__rename_modal {
z-index: z-index(".components-popover") + 1;
}

0 comments on commit 4ddaad0

Please sign in to comment.