Skip to content

fix(dismissable): Preserve target z-index when updating layer stack#3208

Open
Hwacc wants to merge 3 commits into
chakra-ui:mainfrom
Hwacc:fix/dialog-layer-stack
Open

fix(dismissable): Preserve target z-index when updating layer stack#3208
Hwacc wants to merge 3 commits into
chakra-ui:mainfrom
Hwacc:fix/dialog-layer-stack

Conversation

@Hwacc

@Hwacc Hwacc commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

This PR is aimed to address #3207

💣 Is this a breaking change (Yes/No): No

@changeset-bot

changeset-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e5bf8a2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zag-nextjs Ready Ready Preview Jul 15, 2026 5:45am
zag-solid Ready Ready Preview Jul 15, 2026 5:45am
zag-svelte Ready Ready Preview Jul 15, 2026 5:45am
zag-vue Ready Ready Preview Jul 15, 2026 5:45am
zag-website Ready Ready Preview Jul 15, 2026 5:45am

Request Review

Store each style target's prior z-index before freezing it, then
restore that exact value on cleanup instead of always removing the
inline property. This prevents clobbering consumer-defined z-index
styles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant