-
When I open a dialog from an open drawer, the background is not dimmed. Presumably, this is because the drawer is also a type of dialog. How can I ensure that the background still dims? |
Beta Was this translation helpful? Give feedback.
Answered by
khmakoto
May 20, 2024
Replies: 1 comment 6 replies
-
@15MariamS , could you please provide more details on how you use Drawer? A link on codesandbox would be helpful. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@15MariamS this happens indeed because we set the background of the
backdrop
to transparent if you have nested dialogs. Is there a reason why you need to call theDialog
inside of theOverlayDrawer
? I'm asking because you basically have a work-around solution in the link you shared.If there is a reason why you absolutely have to open the
Dialog
from within theOverlayDrawer
, then you can customize the styles of the backdrop to the color used when you don't have nested dialogs, that isbackgroundColor: 'rgba(0, 0, 0, 0.4)'
. You can take a look at the solution in this modified stackblitz based on the link you shared.