angular-material-css-vars
angular-material-css-vars copied to clipboard
Drawer background color variable
:ghost: Brief Description
The same variable is used for card background and drawer backdrop: --palette-background-card
.
Changing this variable also leads to changing drawer bg color (see .mat-drawer-backdrop
class)
Steps To Reproduce
Steps to reproduce the behavior:
- Add mat-card and mat-sidenav components
- Open drawer
- Change
--palette-background-card
variable - Observe card and drawer bg
:police_car: Expected behavior
Drawer bg color should not change
Thanks for opening this up. This is less of a bug than an improve I'd say :)
Though I personally don't need this adjustment, a PR would be welcome.
EDIT: not sure if this is as trivial as I thought. This is just how angular material handles it internally. But if someone has an idea, I am all ears.
In v5, the variables for foreground and background colors have been removed from the package. The discussion on whether this feature will be added back and if yes how is tracked in #116. Your feature request will be considered there as well.