This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Modals do not appear to respect theming #525
Closed
Description
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?