Skip to content

Commit

Permalink
DataViews: Fix patterns, templates and template parts pagination `z-i…
Browse files Browse the repository at this point in the history
…ndex` (#58965)

Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: annezazu <[email protected]>
Co-authored-by: miksansegundo <[email protected]>
  • Loading branch information
6 people authored and youknowriad committed Feb 20, 2024
1 parent d50c836 commit 16f7948
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/base-styles/_z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ $z-layers: (
".edit-site-page-header": 2,
".edit-site-page-content": 1,
".edit-site-patterns__header": 2,
".edit-site-patterns__grid-pagination": 2,
".edit-site-patterns__dataviews-list-pagination": 2,
".edit-site-templates__dataviews-list-pagination": 2,
".edit-site-layout__canvas-container": 2,
".edit-site-layout__sidebar": 1,
".edit-site-layout__canvas-container.is-resizing::after": 100,
Expand Down
4 changes: 4 additions & 0 deletions packages/edit-site/src/components/page-patterns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@
text-overflow: ellipsis;
color: inherit;
}

.dataviews-pagination {
z-index: z-index(".edit-site-patterns__dataviews-list-pagination");
}
}

.dataviews-action-modal__duplicate-pattern {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ export default function PageTemplatesTemplateParts( { postType } ) {

return (
<Page
className="edit-site-page-template-template-parts-dataviews"
title={
postType === TEMPLATE_POST_TYPE
? __( 'Templates' )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@
.page-templates-description {
white-space: normal;
}

.edit-site-page-template-template-parts-dataviews {
.dataviews-pagination {
z-index: z-index(".edit-site-templates__dataviews-list-pagination");
}
}

0 comments on commit 16f7948

Please sign in to comment.