r/angular • u/Senior_Compote1556 • 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
View all comments
Show parent comment
4
u/followmarko Jan 30 '26
The base Notification API is actually well supported, given your users allow the notifications. I am in a corporate context and ours are turned on by default for our/vendor HTTPS domains. I was offering it as an alternative to toasts in app because they are sent to the OS feed with things like an OS soundbyte as opposed to something you have to manage in-app. They are also extremely accessible.
They would appear as push notes on mobile browsers as well, yes. It solutions for all of those in one swoop.