I have a specific requirement to create a mega menu using Angular Material Menu. I attempted to apply some custom styling to the cdk-overlay-pane using my own class, but it did not work as expected.
I tried to add a custom class to the mat-menu element using both the class and panelClass attributes. Here is the code snippet:
<mat-menu #menu="matMenu" [overlapTrigger]="false" panelClass='CustomClass'>
<mat-menu #menu="matMenu" [overlapTrigger]="false" class='CustomClass'>
Unfortunately, neither of the above code snippets worked for me.
The desired outcome is to successfully apply a custom class alongside the cdk panel class when Angular Material opens the menu cdk overlay.