I am working with Angular 2 app using angular material and angular flex layout.I have created in my application a login form and a header which is only visible after login in my home page.
In my app.component.html I have added my header and applied the below style to get it fixed while scrolling.
<div style="margin-bottom:5px;
top: 0;
position: sticky;
z-index: 1;
background-color: inherit;">
In my home page I have added a mat-toolbar component,mat-card component and mat-sidenav component.
After logging in the app, when I scroll the homepage content is overlapping my fixed header and my header is getting covered with the home page content.
Please access my sample app here
Can anybody please help me in proper implementation of my fixed header?