Skip to content

Commit 08e61bc

Browse files
committed
Revert "Dialog: Add legacy z-index compatibility"
This reverts commit 72e288f.
1 parent 72e288f commit 08e61bc

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

packages/ui/src/dialog/stories/index.story.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,3 @@ export const AllSizes: Story = {
175175
children: <SizePlaygroundContent />,
176176
},
177177
};
178-
179-
/**
180-
* Popovers in Gutenberg are managed with explicit z-index values, which can create
181-
* situations where a dialog renders below another popover, when you want it to be rendered above.
182-
*
183-
* The `--wp-ui-dialog-z-index` CSS variable controls the z-index of both the
184-
* backdrop and the popup. It can be overridden globally by setting the variable
185-
* on `:root` or `body`. (This story doesn't actually demonstrate the feature
186-
* because it requires a global CSS rule.)
187-
*/
188-
export const WithCustomZIndex: Story = {
189-
..._Default,
190-
name: 'With Custom z-index',
191-
};

packages/ui/src/dialog/style.module.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
.backdrop {
55
position: fixed;
66
inset: 0;
7-
z-index: var(--wp-ui-dialog-z-index, initial);
87
background-color: rgba(0, 0, 0, 0.35);
98

109
&[data-starting-style],
@@ -26,7 +25,6 @@
2625
top: 50%;
2726
/* stylelint-disable-next-line plugin/use-logical-properties-and-values -- Physical centering technique used with transform: translate(-50%, -50%) */
2827
left: 50%;
29-
z-index: var(--wp-ui-dialog-z-index, initial);
3028
transform: translate(-50%, -50%);
3129
box-sizing: border-box;
3230
min-width: 320px;

0 commit comments

Comments
 (0)