Proposal: remove background-color from .mat-drawer-container
See original GitHub issueBug, 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:
- Created 6 years ago
- Reactions:30
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thats what is there currently , why ?
I agree with @adamdport I have to override this background color every time.