Skip to content

Dim background on dialog opened from drawer #31305

Closed Answered by khmakoto
15MariamS asked this question in Q&A
Discussion options

You must be logged in to vote

@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 the Dialog inside of the OverlayDrawer? 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 the OverlayDrawer, then you can customize the styles of the backdrop to the color used when you don't have nested dialogs, that is backgroundColor: 'rgba(0, 0, 0, 0.4)'. You can take a look at the solution in this modified stackblitz based on the link you shared.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@15MariamS
Comment options

@khmakoto
Comment options

Answer selected by 15MariamS
@15MariamS
Comment options

@khmakoto
Comment options

@15MariamS
Comment options

@khmakoto
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants