dialog ovelay over a MatSideNav

1 Answer 8 Views
Dialog
Pierre
Top achievements
Rank 2
Iron
Iron
Pierre asked on 14 Oct 2025, 10:03 PM

I got a simple custom dialog created with a <kendo-dialog> inside a component. The overlay works great and fills all the screens, except the matSideNav with Menu. The width of the overlay = screen wide.;

I tried to change z-Index of the k-overlay, but nothing works.

The only thing that works is using the Kendo Dialog Service with the outside of the nav container

<div kendoDialogContainer></div>

 

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Accepted
Zornitsa
Telerik team
answered on 17 Oct 2025, 11:39 AM

Hi Pierre,

The issue you’re seeing is caused by how stacking contexts and overlays interact with Angular Material’s MatSideNav. MatSideNav may create its own stacking context, which can cause the Kendo UI for Angular Dialog overlay to appear below it, even if you change the z-index of the .k-overlay element.

Recommended Solution

Using the DialogService with a kendoDialogContainer element placed outside the MatSideNav is indeed the most reliable approach. This ensures the Dialog overlay covers the entire screen, including the side navigation.

Alternatively, if using the DialogService is not desired, the <kendo-dialog> component can be initialized in the HTML markup again outside the MatSideNav. This approach should also work as expected and make the Dialog overlay cover the MatSideNav as well. 

For reference, I am linking below a sample StackBlitz example using MatSideNav with the Kendo UI for Angular Dialog, where the overlay covers the MatSideNav as expected:

With the above being said, placing the Dialog definition outside the MatSideNav is indeed the recommended and most robust solution.

Please check out the above information and let me know if I am missing something.

Regards,
Zornitsa
Progress Telerik

Your perspective matters! Join other professionals in the State of Designer-Developer Collaboration 2025: Workflows, Trends and AI survey to share how AI and new workflows are impacting collaboration, and be among the first to see the key findings.
Start the 2025 Survey
Tags
Dialog
Asked by
Pierre
Top achievements
Rank 2
Iron
Iron
Answers by
Zornitsa
Telerik team
Share this question
or