Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): ensure unpublish confirmation is reachable when opened in drawers #10109

Merged

Conversation

akhrarovsaid
Copy link
Contributor

@akhrarovsaid akhrarovsaid commented Dec 20, 2024

What?

This PR fixes an issue where the unpublish modal was unreachable due to the high z-index on Drawer components. This makes unpublishing documents from a drawer impossible. For example, when editting a document from the drawer opened in a RelationshipTable.

Why?

To allow editors to be able to unpublish docs regardless of drawer depth and context.

How?

By rendering the unpublish modal at a sufficiently high z-index, while taking into account edit depth.

Fixes #10108

Before:
Dashboard-unpublish-before--Payload.webm

After:
Dashboard-unpublish-after--Payload.webm

Copy link
Contributor

@DanRibbens DanRibbens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the recording, saves me time reviewing. The code looks good.

@DanRibbens DanRibbens enabled auto-merge (squash) December 20, 2024 20:12
@DanRibbens DanRibbens merged commit ec853c4 into payloadcms:main Dec 20, 2024
73 checks passed
Copy link
Contributor

🚀 This is included in version v3.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unpublish modal unreachable in document drawers
2 participants