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
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
When instantiating a modal, the modal always uses the "default" theme (e.g. the class md-default-theme), even though the modals DOM element is a child of <body> on which I have md-theme="custom-theme-name".
I thought maybe we could use the $mdTheming service in our application's .config block to set the default theme name by calling setDefaultTheme('custom-theme-name') but from my initial investigation it seems as though this function is not public and so cannot be called from outside Angular Material.
What is the intended solution for applying themes to modals?
When instantiating a modal, the modal always uses the "default" theme (e.g. the class
md-default-theme), even though the modals DOM element is a child of<body>on which I havemd-theme="custom-theme-name".I thought maybe we could use the $mdTheming service in our application's
.configblock to set the default theme name by callingsetDefaultTheme('custom-theme-name')but from my initial investigation it seems as though this function is not public and so cannot be called from outside Angular Material.What is the intended solution for applying themes to modals?