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 has been archived by the owner on Sep 5, 2024. It is now read-only.
When a theme is defined on a sidebar element the CSS class is not set on that element.
<md-sidenav md-theme="dark"></md-sidenav>
should result in <md-sidenav md-theme="dark" class="md-dark-theme"></md-sidenav>
Though the class is set on the (automatically generated) backdrop element, the class is not set on <md-sidenav> itself.
As there is the selector md-sidenav.md-THEME_NAME-theme in sidenav-theme.scss I think the class should be automatically assigned to the sidebar element, too.
- The current theming of the sidenav wasn't working, because theming wasn't initialized on the element.
- Backdrop should only inherit the theme if there is a parent (just a performance improvement - remove end-less non-sense watcher)
Fixesangular#7084
- The current theming of the sidenav wasn't working, because theming wasn't initialized on the element.
- Backdrop should only inherit the theme if there is a parent (just a performance improvement - remove end-less non-sense watcher)
Fixes#7084Closes#7374
When a theme is defined on a sidebar element the CSS class is not set on that element.
<md-sidenav md-theme="dark"></md-sidenav>
should result in
<md-sidenav md-theme="dark" class="md-dark-theme"></md-sidenav>
Though the class is set on the (automatically generated) backdrop element, the class is not set on
<md-sidenav>
itself.As there is the selector
md-sidenav.md-THEME_NAME-theme
in sidenav-theme.scss I think the class should be automatically assigned to the sidebar element, too.Codepen: http://codepen.io/anon/pen/YwRjNb
Angular Material version: 1.0.5
The text was updated successfully, but these errors were encountered: