components icon indicating copy to clipboard operation
components copied to clipboard

Custom themes don't change sidenav background color

Open pablochacin opened this issue 9 years ago • 7 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Applying a custom theme to a sidenav component should change the background color. Other attributes are changed. if the same theme is set as the default material theme, the background is set correctly.

What is the current behavior?

it is necessary to set the background color using a css class

What are the steps to reproduce?

https://stackblitz.com/edit/basic-sidenav-kcdgmr

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

Control all the element's attributes from the custom theme.

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

Angular 4.4.3 Angular material 2.0.0.beta-11

Is there anything else we should know?

pablochacin avatar Nov 23 '17 16:11 pablochacin

Have you checked #7152?

donroyco avatar Nov 23 '17 18:11 donroyco

@donroyco

From #7152

If you are not generating your theme files during your build process, you definitely need to when upgrading because the css always changes between releases for various bug fixes and features.

This seems not to be not my case, as I'm generating the scss files during the build process (for instance, I see color changes if I change the base palette for my custom theme)

pablochacin avatar Nov 28 '17 11:11 pablochacin

Check this https://github.com/angular/material2/issues/4344

isurendrasingh avatar Nov 28 '17 12:11 isurendrasingh

@isurendrasingh issue 4344 looks like a good candidate, thanks

pablochacin avatar Nov 28 '17 15:11 pablochacin

closing as duplicate of #4344

mmalerba avatar Nov 28 '17 17:11 mmalerba

Your welcome @pablochacin

isurendrasingh avatar Dec 03 '17 12:12 isurendrasingh

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.