Skip to content

Commit

Permalink
fix(sidenav): fix dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
kara committed Sep 23, 2016
1 parent f122c79 commit 39d7e24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/core/theming/_palette.scss
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ $md-light-theme-background: (
hover: rgba(black, 0.04), // TODO(kara): check style with Material Design UX
card: white,
dialog: white,
sidenav: white,
disabled-button: rgba(black, 0.12)
);

Expand All @@ -660,6 +661,7 @@ $md-dark-theme-background: (
hover: rgba(white, 0.04), // TODO(kara): check style with Material Design UX
card: map_get($md-grey, 800),
dialog: map_get($md-grey, 800),
sidenav: #303030,
disabled-button: rgba(white, 0.12)
);

Expand Down
7 changes: 7 additions & 0 deletions src/lib/sidenav/_sidenav-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@
// we use a light backdrop.
$sidenav-backdrop-color: invert(md-color($background, card, 0.6)) !default;
$sidenav-background-color: md-color($background, dialog) !default;
$sidenav-layout-background-color: md-color($background, sidenav) !default;
$sidenav-push-background-color: md-color($background, dialog) !default;

md-sidenav-layout {
background-color: $sidenav-layout-background-color;
color: md-color($foreground, base);
}

md-sidenav {
background-color: $sidenav-background-color;
color: md-color($foreground, base);

&.md-sidenav-push {
background-color: $sidenav-push-background-color;
Expand Down

0 comments on commit 39d7e24

Please sign in to comment.