I checked mat-menu API (https://material.angular.io/components/menu/api#MatMenu) but I couldn't find how to add a class on mat-menu cdk overlay.
I want to add a class on cdk overlay which contains mat-menu template. Can anyone help on the same?
I want to add class on parent cdk overlay because in responsive menu is not opening correctly. Check this below image.
<mat-menu class="my-class">
? Classes set that way are dynamically applied to the .mat-menu-panel div that is the child of the .cdk-overlay-pane div. See 'panelClass' under the MatMenu API docs. – G. Tranter