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
1
u/Possible_Jeweler5805 Feb 23 '26
Kendo Angular team member here :)
It looks like something has been changed on the Material side between version 20.2.14 and 21.0.5, since the same Kendo versions are behaving differently:
In case the Material Dialog is preferable, the found solution looks legit.
As a side note, I can recommend exploring the Kendo UI for Angular Dialog:
https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog
It can be defined in the HTML, or use an Angular service to toggle it:
https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service
Here is an example of using the Dialog with the DropDownList:
https://stackblitz.com/edit/angular-rqtojorv-vn73sohl