You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect extra number of overlays with multiple dialog #2324
click open modal 1 on main app + click open modal 2 in opened dialog
you can still interact with dialog 1
you see the overlay darken because there are now 2 overlays
What is the use-case or motivation for changing an existing behavior?
By creating a new overlay for each opened dialog, it darkens then look of the overlay for each on that is opened
Should not be able to interact with dialog 1 until dialog 2 is closed, currently you can still click on "open modal 2" from dialog 1 which keeps creating dialog 2s and overlay keeps getting darker and darker for each overlay instantiated
Which versions of Angular, Material, OS, browsers are affected?
@crisbeto Overlay stacking described in #2276 may be close to what I'm saying, though after cloning from master and running "gulp build:components" and rebuilding my app to use that version, I see no difference with the overlays in my dialogs (2 opened sequentially and left opened)
both overlays were still under both dialogs
because there were two overlays, they looked darker
IMO, both of these behavior are not correct. Maybe I'm not building from source correctly to see the change?
There should be only 1 overlay no matter how many dialogs are opened. If for technical reasons we need to have 1 overlay per dialog, then all but the last overlay should have opacity of 0 so they don't ad to the darkness of the overlay.
Here's what it looks like for me on master @guojenman:
Regarding the overlays looking darker, I think that my example illustrates why it's necessary: when you have multiple dialogs and one doesn't overlap the other completely, you need some kind of indication that the lower one isn't clickable (hence the darkening). It might make sense to have a config option to be able to disable it, though.
Activity
crisbeto commentedon Dec 21, 2016
I'm not sure I agree that only one dialog should be open at a time. That being said, the backdrop stacking issues should be solved with #2276
guojenman commentedon Dec 21, 2016
@crisbeto Overlay stacking described in #2276 may be close to what I'm saying, though after cloning from master and running "gulp build:components" and rebuilding my app to use that version, I see no difference with the overlays in my dialogs (2 opened sequentially and left opened)
IMO, both of these behavior are not correct. Maybe I'm not building from source correctly to see the change?
There should be only 1 overlay no matter how many dialogs are opened. If for technical reasons we need to have 1 overlay per dialog, then all but the last overlay should have opacity of 0 so they don't ad to the darkness of the overlay.
crisbeto commentedon Dec 22, 2016
Here's what it looks like for me on master @guojenman:
Regarding the overlays looking darker, I think that my example illustrates why it's necessary: when you have multiple dialogs and one doesn't overlap the other completely, you need some kind of indication that the lower one isn't clickable (hence the darkening). It might make sense to have a config option to be able to disable it, though.
guojenman commentedon Dec 22, 2016
@crisbeto your build looks like the right behavior. Thank you.
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.