You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Md-dialog config backdropClass has either a bug or awkward functionality which removes .cdk-overlay-dark-backdrop class and access is only on sibling div #4594
When using the configuration backdropClass and setting a custom class the original overlay css should remain. I believe the implication here is that a person would want their own backdrop class to color the overlay.
Also, one consequence of this is it is nice to have a class that is custom per the dialog box however, one can only reach the sibling div by adding a + or ~ operator to the css class.
What is the current behavior?
this class is removed
.cdk-overlay-dark-backdrop {
background: #000;
}
What are the steps to reproduce?
any plnkr will show this
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U
What is the use-case or motivation for changing an existing behavior?
Adding a class should be the requisite for removing a class... I mean a simple override would have the same affect. The ability to add a class allows for full customization per dialog box which is better functionality. If the purpose is to remove the class and then add ones own class that should be a 2 step configuration process or at least let the api give that particular twofer option
Which versions of Angular, Material, OS, TypeScript, browsers are affected?