Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
update(theme): content background color restored
Browse files Browse the repository at this point in the history
Restore mdContent background theme color:

*  mdContent, mdCard, and mdDatepicker all use `background: '{{background-hue-1}}';`
*  body, html elemens use `background: '{{background-50}}';` theme colors
  • Loading branch information
ThomasBurleson committed Mar 22, 2016
1 parent ba130f2 commit 0b89a87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/content/content-theme.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
md-content.md-THEME_NAME-theme {
color: '{{foreground-1}}';
background-color: '{{background-hue-1}}';
}
2 changes: 1 addition & 1 deletion src/components/datepicker/datePicker-theme.scss
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/core/services/theming/theming.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || [];
Expand Down

0 comments on commit 0b89a87

Please sign in to comment.