question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal: remove background-color from .mat-drawer-container

See original GitHub issue

Bug, feature request, or proposal:

Proposal: remove background-color from .mat-drawer-container

What is the expected behavior?

The common background that I’ve set in my app appears on a page with a drawer

What is the current behavior?

Putting a drawer on a page requires putting the page contents inside md-drawer-container which comes with background-color set that overrides any app background that’s been set.

What are the steps to reproduce?

Add a drawer to a page with a non-standard background

What is the use-case or motivation for changing an existing behavior?

Overlays for drawers and sliders are typically supposed to block the majority of the UI. IMHO material shouldn’t be providing a background-color for this majority.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

2.0.0-beta.10

Is there anything else we should know?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:30
  • Comments:9

github_iconTop GitHub Comments

1reaction
wintersommercommented, Dec 14, 2018

thats what is there currently , why ?

background-color: #fafafa;
color: rgba(0,0,0,.87);
1reaction
ja5onkendallcommented, Oct 10, 2017

I agree with @adamdport I have to override this background color every time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the background color of mat-drawer-container
Don't override the existing material classes - instead, apply your own class to the element: <mat-drawer-container class="red-container"> .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found