material icon indicating copy to clipboard operation
material copied to clipboard

panel: custom theme not automatically applied

Open fabienbranchel opened this issue 9 years ago • 3 comments

Actual Behavior:

  • What is the issue? *

When using defineTheme to generate theme on the fly, primary color is apply on main page and in dialog controller, but not in panel controller.

  • What is the expected behavior?

Primary color should be applied everywhere.

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue:

http://codepen.io/fabienpopup/pen/MJQewW?editors=1010

  • Details:

Click on panel button : the toolbar is using the primary default indigo color. Click on dialog button : the toolbar is using the primary red color defined with defineTheme function.

Angular Versions: *

  • Angular Version: 1.5.11
  • Angular Material Version: 1.1.2 & 1.1.3

Additional Information:

  • Browser Type: * All
  • Browser Version: * All
  • OS: * All
  • Stack Traces:

fabienbranchel avatar Jan 31 '17 13:01 fabienbranchel

AngularJS 1.6.4 material 1.1.4

same issue

rudzikdawid avatar May 22 '17 15:05 rudzikdawid

+1

thorvx avatar Mar 14 '18 15:03 thorvx

It looks like you can just define the theme on the panel to enable it there as well. Here's an updated CodePen demo of this. Panels are lower level than dialogs, which may explain why they don't automatically pull in theme settings like dialogs do.

Splaktar avatar Mar 15 '18 00:03 Splaktar