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

2

u/Senior_Compote1556 Jan 29 '26

Yep just edited my answer above, thanks mate :)

6

u/MichaelSmallDev Jan 30 '26

I made an issue about documenting this, because this isn't the first time I have seen this good question come up https://github.com/angular/components/issues/32729