-
Notifications
You must be signed in to change notification settings - Fork 350
feat(Dialog): add enableNestedDialogLayer prop #3176
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
feat(Dialog): add enableNestedDialogLayer prop #3176
Conversation
PR Reviewer Guide 🔍(Review updated until commit 10c0180)Here are some key observations to aid the review process:
|
|
A new prerelease version of this PR has been published! 🎉 To update Or with npm: To update Or with npm: To update Or with npm: To update Or with npm: To update Or with npm: To update Or with npm: To update Or with npm: To update Or with npm: |
|
📦 Bundle Size Analysis ✅ No bundle size changes detected. Unchanged Components
📊 Summary:
|
User description
https://monday.monday.com/boards/3532714909/views/80492480/pulses/18362148734
PR Type
Enhancement
Description
Add
enableNestedDialogLayerprop to conditionally wrap Dialog with LayerProviderEnables proper z-index stacking and click-outside behavior for nested dialogs
Supports components using Dialog internally (like Dropdown) within another Dialog
Defaults to false for backward compatibility
Diagram Walkthrough
File Walkthrough
Dialog.tsx
Add conditional LayerProvider wrapping for nested dialogspackages/core/src/components/Dialog/Dialog.tsx
enableNestedDialogLayeroptional boolean prop to DialogPropsinterface with documentation
enableNestedDialogLayerto false in defaultPropswrapping
enableNestedDialogLayeris true