From 0b89a877ad31d0f7d425272f29d8c02600a12a88 Mon Sep 17 00:00:00 2001 From: Thomas Burleson Date: Tue, 22 Mar 2016 11:58:58 -0700 Subject: [PATCH] update(theme): content background color restored Restore mdContent background theme color: * mdContent, mdCard, and mdDatepicker all use `background: '{{background-hue-1}}';` * body, html elemens use `background: '{{background-50}}';` theme colors --- src/components/content/content-theme.scss | 1 + src/components/datepicker/datePicker-theme.scss | 2 +- src/core/services/theming/theming.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/content/content-theme.scss b/src/components/content/content-theme.scss index 4095aeddba6..28d19d33e43 100644 --- a/src/components/content/content-theme.scss +++ b/src/components/content/content-theme.scss @@ -1,3 +1,4 @@ md-content.md-THEME_NAME-theme { color: '{{foreground-1}}'; + background-color: '{{background-hue-1}}'; } diff --git a/src/components/datepicker/datePicker-theme.scss b/src/components/datepicker/datePicker-theme.scss index 18cc7a09bf4..4eb46c2ced6 100644 --- a/src/components/datepicker/datePicker-theme.scss +++ b/src/components/datepicker/datePicker-theme.scss @@ -1,7 +1,7 @@ /** Theme styles for mdDatepicker. */ md-datepicker.md-THEME_NAME-theme { - background: '{{background-color}}'; + background: '{{background-hue-1}}'; } .md-THEME_NAME-theme { diff --git a/src/core/services/theming/theming.js b/src/core/services/theming/theming.js index ad9b9b3f16d..e5987616109 100644 --- a/src/core/services/theming/theming.js +++ b/src/core/services/theming/theming.js @@ -551,7 +551,7 @@ function generateAllThemes($injector) { // The user specifies a 'default' contrast color as either light or dark, // then explicitly lists which hues are the opposite contrast (eg. A100 has dark, A200 has light) - function sanitizePalette(palette) { + function sanitizePalette(palette, name) { var defaultContrast = palette.contrastDefaultColor; var lightColors = palette.contrastLightColors || []; var strongLightColors = palette.contrastStrongLightColors || [];