You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consistent NgClass compatibility would be awesome. If not possible, string | string[] support would be good.
Additionally, consistent naming would be nice. Snackbar uses extraClasses, whereas select uses panelClass. Also, select and dialog both use panelClass, but the class is added to different elements.
One thing I will say is that we don't want to add additional cdk packages for utility methods; each one is a public API that a user would potentially need to know about (such as when adding to a systemjs config)
Would it make sense (maybe in another issue / PR) to add a similar input for the .cdk-overlay-container element?
I guess another option would be to have only one class at the top (.cdk-overlay-container) and then devs can use nested styles to control all parts of the overlay. With the current implementation I don't think there is any way to edit an overlay background from a component?
Activity
jelbourn commentedon Aug 16, 2017
Agreed, they should all be consistent. I would want to use
panelClasseverywhereamcdnl commentedon Sep 24, 2017
@jelbourn - So to clarify, update all the inputs to
panelClasswithNgClassas the interface? Do we need to deprecate as well?jelbourn commentedon Sep 26, 2017
The template-based components can have
NgClassmechanics, but dialog.snack-bar would just stay as strings because there's no binding contextjelbourn commentedon Sep 26, 2017
Also this would be a good candidate for a mixin
amcdnl commentedon Sep 30, 2017
@jelbourn -
matTooltipClasstomatPanelClassor just leave it for that one?Before I make a PR up, can you give this a once over and see if this is on track with what you were thinking? https://github.com/amcdnl/material2/tree/overlay-class-6372
chore(api): overlay class audits angular#6372
jelbourn commentedon Oct 1, 2017
Tooltip can stay as
matTooltipClassjelbourn commentedon Oct 1, 2017
If you make a PR it's easier to leave comments; you can mark it as WIP
jelbourn commentedon Oct 1, 2017
One thing I will say is that we don't want to add additional cdk packages for utility methods; each one is a public API that a user would potentially need to know about (such as when adding to a systemjs config)
fix(overlay): overlay class audits angular#6372
josh18 commentedon Oct 27, 2017
Would it make sense (maybe in another issue / PR) to add a similar input for the
.cdk-overlay-containerelement?I guess another option would be to have only one class at the top (
.cdk-overlay-container) and then devs can use nested styles to control all parts of the overlay. With the current implementation I don't think there is any way to edit an overlay background from a component?fix(overlay): overlay class audits #6372 (#8056)
angular-automatic-lock-bot commentedon Sep 7, 2019
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.