I'm new to Angular 2 Material, and I'm trying to customize the style of the md-menu component.
<md-icon class="material-icons" [mdMenuTriggerFor]="menu">dehaze</md-icon>
<md-menu #menu="mdMenu" [overlapTrigger]="false">
<button md-menu-item>Item 1</button>
<button md-menu-item>Item 2</button>
</md-menu>
The predefined style settings work fine (for example, the menu setting does not overlap), but I would like to set the md menu to 100% width and run a little between the md-icon button, which expands the menu, which I cannot do with the predefined directives from Angular 2 material .
So far, I have found a solution with the / deep / css command, but I read that this command is no longer supported by major browsers.
What is a good way to customize Angular 2 component? How can I create my md menu so that it has 100% width and some space between the extension button?
To illustrate what I'm talking about:
Draft menu
source
share