Expected Behaviour is the overlay should have a z-index and should show up on top
Currently it is showing in the next line
Please check the provided link below
StackBlitz: https://stackblitz.com/edit/angular-nwwk19
I was just trying to make a custom modal and faced this issue. Any help will be appreciated.
@angular/cdk: 6.3.2
EDIT:
Well i fixed it by adding this in my index.html
<link href="https://unpkg.com/@angular/material/prebuilt-themes/indigo-pink.css" rel="stylesheet">
But my question is if cdk is a standalone library then why we need to import a stylesheet that is angular material specific?
If you're using the CDK without Material, you can include the overlay prebuilt styles, rather than a Material theme:
@import "~@angular/cdk/overlay-prebuilt.css";
Thanks.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
If you're using the CDK without Material, you can include the overlay prebuilt styles, rather than a Material theme: