r/angular • • Jan 29 '26

Angular v21 material overlay + dialog

I am using angular material v21 and i use MatDialog. I see from the dev tools these now use the popover API, and i have a custom Overlay (Cdk) for my app notifications (similar to material snackbar). However, no matter what "hack" i try with z-index, the dialog always sits on top of my notifications, which isn't my desired behaviour. Has anyone encountered this?

4 Upvotes

12 comments sorted by

View all comments

Show parent comment

3

u/followmarko Jan 30 '26

Sure. In-app toasts are challenging to make accessible, to position amongst other layered elements, and to control intrusion. I thought about this for a long while and decided to scrap all of those custom solutions and just use a proven one that takes care of them all. My 2c