angular-material-css-vars icon indicating copy to clipboard operation
angular-material-css-vars copied to clipboard

Drawer background color variable

Open definitely-unique-username opened this issue 4 years ago • 1 comments

: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:

  1. Add mat-card and mat-sidenav components
  2. Open drawer
  3. Change --palette-background-card variable
  4. 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.

johannesjo avatar Feb 05 '21 18:02 johannesjo

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.

json-derulo avatar May 04 '23 18:05 json-derulo