My app uses multiple mat-dialogs and sometimes it can happen that 2 are displayed at same time which causes a problem as the second one is never displayed correct and since its modal renders the app useless. After some more research it seems i can adjust the z-index for the mat-dialog via
.cdk-overlay-container {
z-index: 500 !important;
}
But that wont solve my problem as it will change the z-index for all to 500. My question is how can i change the Z-index only for certain mat-dialogs. For example all my basic dialogs can be one z-index as they will never show at same time and then i have dialogs which will alert or warn users which have to go above these basic ones. What is the best way to make it somewhat user configurable ?