Skip to content

Commit 91caad9

Browse files
ntsekourast-hamanojameskosterannezazumiksansegundo
authored andcommitted
DataViews: Fix patterns, templates and template parts pagination z-index (#58965)
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: annezazu <annezazu@git.wordpress.org> Co-authored-by: miksansegundo <miguelsansegundo@git.wordpress.org>
1 parent 0e4c4e4 commit 91caad9

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

packages/base-styles/_z-index.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ $z-layers: (
190190
".edit-site-page-header": 2,
191191
".edit-site-page-content": 1,
192192
".edit-site-patterns__header": 2,
193-
".edit-site-patterns__grid-pagination": 2,
193+
".edit-site-patterns__dataviews-list-pagination": 2,
194+
".edit-site-templates__dataviews-list-pagination": 2,
194195
".edit-site-layout__canvas-container": 2,
195196
".edit-site-layout__sidebar": 1,
196197
".edit-site-layout__canvas-container.is-resizing::after": 100,

packages/edit-site/src/components/page-patterns/style.scss

+4
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@
283283
text-overflow: ellipsis;
284284
color: inherit;
285285
}
286+
287+
.dataviews-pagination {
288+
z-index: z-index(".edit-site-patterns__dataviews-list-pagination");
289+
}
286290
}
287291

288292
.dataviews-action-modal__duplicate-pattern {

packages/edit-site/src/components/page-templates-template-parts/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ export default function PageTemplatesTemplateParts( { postType } ) {
429429

430430
return (
431431
<Page
432+
className="edit-site-page-template-template-parts-dataviews"
432433
title={
433434
postType === TEMPLATE_POST_TYPE
434435
? __( 'Templates' )

packages/edit-site/src/components/page-templates-template-parts/style.scss

+6
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,9 @@
5858
.page-templates-description {
5959
white-space: normal;
6060
}
61+
62+
.edit-site-page-template-template-parts-dataviews {
63+
.dataviews-pagination {
64+
z-index: z-index(".edit-site-templates__dataviews-list-pagination");
65+
}
66+
}

0 commit comments

Comments
 (0)