I created a horizontal menu with tabs using Angular Material and I want to put a button on the left side of it to open a sidebar.
The problem is:
- either the button overlays with the first tab and it looks for the user as clicking both the button and the tab
- or I set the width of the
mat-tab-groupto e.g. 95%, but then the main content only stretches over 95%, but it necessarily needs to befull-width.
Here is a picture of the state I want to achieve

<div style="float:left;">
<button style="position:fixed;" mat-icon-button>
<mat-icon>menu</mat-icon>
</button>
</div>
<mat-tab-group>
<mat-tab label="First"> Content 1 </mat-tab>
<mat-tab label="Second"> Content 2 </mat-tab>
<mat-tab label="Third"> Content 3 </mat-tab>
</mat-tab-group>
stackblitz
Update The main content fill all. The only is the button it's not "underline", If we want the button underline we can change the margin-left by padding-left, but. In this case we need put the button in position absolute and with a z-index
In this case I feel it's good enclosed all in a div with position:relative
a new stackblitz