From 0c6f3cb36cd979e058a568e25afde4a6c30523ff Mon Sep 17 00:00:00 2001 From: Nik Tsekouras Date: Tue, 13 Feb 2024 17:49:02 +0200 Subject: [PATCH] DataViews: Fix patterns, templates and template parts pagination `z-index` (#58965) Co-authored-by: ntsekouras Co-authored-by: t-hamano Co-authored-by: jameskoster Co-authored-by: annezazu Co-authored-by: miksansegundo --- packages/base-styles/_z-index.scss | 3 ++- packages/edit-site/src/components/page-patterns/style.scss | 4 ++++ .../src/components/page-templates-template-parts/index.js | 1 + .../src/components/page-templates-template-parts/style.scss | 6 ++++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/base-styles/_z-index.scss b/packages/base-styles/_z-index.scss index e6d8d12769e701..ff21d1d8df8f35 100644 --- a/packages/base-styles/_z-index.scss +++ b/packages/base-styles/_z-index.scss @@ -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, diff --git a/packages/edit-site/src/components/page-patterns/style.scss b/packages/edit-site/src/components/page-patterns/style.scss index 89f38e7d4c9a63..2dc9326e4d29be 100644 --- a/packages/edit-site/src/components/page-patterns/style.scss +++ b/packages/edit-site/src/components/page-patterns/style.scss @@ -101,6 +101,10 @@ text-overflow: ellipsis; color: inherit; } + + .dataviews-pagination { + z-index: z-index(".edit-site-patterns__dataviews-list-pagination"); + } } .dataviews-action-modal__duplicate-pattern { diff --git a/packages/edit-site/src/components/page-templates-template-parts/index.js b/packages/edit-site/src/components/page-templates-template-parts/index.js index 514ff148071955..9089d31cd66e0a 100644 --- a/packages/edit-site/src/components/page-templates-template-parts/index.js +++ b/packages/edit-site/src/components/page-templates-template-parts/index.js @@ -429,6 +429,7 @@ export default function PageTemplatesTemplateParts( { postType } ) { return (