panel: custom theme not automatically applied
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.11Angular Material Version:1.1.2 & 1.1.3
Additional Information:
Browser Type: *AllBrowser Version: *AllOS: *AllStack Traces:
AngularJS 1.6.4 material 1.1.4
same issue
+1
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.