[Dialog] Provide an escape hatch for displaying backdrops on nested dialogs #1477
Labels
component: dialog
This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
Feature request
Summary
Currently nested dialogs hide their backdrop, which is a GREAT default. However, in certain situations we need to display the backdrop on the nested dialog, e.g. a dialog that is being fired from a Sidebar drawer.
Something like
forceNestedBackdrop
should be declarative enough to get this working.Motivation
I need to fire a nested dialog from within a sidebar drawer (currently built with the Dialog primitive) - the drawer doesn't have its own backdrop, and the nested dialog needs it to be presented correctly. Both dialogs have different shapes so sharing backdrop settings from the parent is not possible.
Current Backdrop design forcefully hides the overlay when nested and there is no way to easily opt out of this behavior, so there is no easy way to position an overlay without working around nesting and breaking composition.
The text was updated successfully, but these errors were encountered: