-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(mdPanel): Panel and tooltip theming #10031
Conversation
This appears to fix the tooltip, but not the panel backdrop. The theme is still not applied to the backdrop. |
It seemed to work in my tests. How are you isolating it to get these results? |
Were you able to see where the |
I tested this by running the presubmit and patching it into our code where I could see the tooltip and a standalone panel. So you can also see the standalone panel, if you temporarily add |
For more information, |
Ahha! Got it! For the backdrop, there is no positionConfig, so the If you add the two |
Very cool. I am updating this now. |
Would it be better to put it here: https://github.com/angular/material/blob/master/src/components/panel/panel.js#L1662? The |
40a376a
to
5e3cead
Compare
@ErinCoughlan Give this a check and see what you think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
resolve(self); | ||
}); | ||
}); | ||
}; | ||
|
||
|
||
/** | ||
* Sets the `$mdTheming` classes on the `panelContainer` and `panelEl`. | ||
* @method setTheming |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line isn't needed, @method
is only used for the ngdoc, but this isn't public.
- Initialized theming through `$mdTheming` on the panel element and container after the panel is created. - Fixed the panel and tooltip theme Sass files to remove unthemed styles and complicated syntax. - Removed an unnecessary `$mdTheming` call from the tooltip directive. Fixes angular#10030
5e3cead
to
d30c26e
Compare
@jelbourn - important fix. |
$mdTheming
on the panel element and container after the panel is created.$mdTheming
call from the tooltip directive.Fixes #10030