I have the following simple code:
<md-content>
<md-datepicker ng-model="startDate" md-placeholder="Enter date">
</md-datepicker>
</md-content>
It populates fine, but when you click on it, the calendar I can see pops up in the shadow behind angular modal window.
*I'm using this datepicker: https://material.angularjs.org/latest/demo/datepicker
you just need to put this into the html template of the modal:
I ended up going into angular-material.css and changed the Z-index to 1151.
The accepted answer is outdated. For
@angular/material 5.0.0-rc0
have used with success:https://stackoverflow.com/a/47274694/1225421
Just like ACSteel, you can force the CSS to bring it to where you need however doing it in the module's css file isn't a good technique.
Any updates to AngularMD will overwrite your changes, you're better off forcing the CSS in your own CSS and add "!important" to the rules.
Good luck!
You need to specify /deep/ since this is runtime generated class:
/deep/ .cdk-overlay-container{ z-index: 1200 !important; }