Skip to content

Commit

Permalink
fix: Make CSS custom properties compatible with sass-spec 3.5 (#1076)
Browse files Browse the repository at this point in the history
Fixes #1075
  • Loading branch information
grzuy authored and acdvorak committed Aug 8, 2017
1 parent c6a1f2a commit 264c154
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/mdc-dialog/mdc-dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
$mdc-dialog-dark-theme-bg-color: #303030 !default;

:root {
--mdc-dialog-dark-theme-bg-color: $mdc-dialog-dark-theme-bg-color;
--mdc-dialog-dark-theme-bg-color: #{$mdc-dialog-dark-theme-bg-color};
}

// postcss-bem-linter: define dialog
Expand Down
2 changes: 1 addition & 1 deletion packages/mdc-drawer/permanent/mdc-permanent-drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $mdc-permanent-drawer-width: 240px;
$mdc-permanent-drawer-dark-theme-bg-color: #212121 !default;

:root {
--mdc-permanent-drawer-dark-theme-bg-color: $mdc-permanent-drawer-dark-theme-bg-color;
--mdc-permanent-drawer-dark-theme-bg-color: #{$mdc-permanent-drawer-dark-theme-bg-color};
}

.mdc-permanent-drawer {
Expand Down
2 changes: 1 addition & 1 deletion packages/mdc-drawer/persistent/mdc-persistent-drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $mdc-persistent-drawer-width: 240px;
$mdc-persistent-drawer-dark-theme-bg-color: #212121 !default;

:root {
--mdc-persistent-drawer-dark-theme-bg-color: $mdc-persistent-drawer-dark-theme-bg-color;
--mdc-persistent-drawer-dark-theme-bg-color: #{$mdc-persistent-drawer-dark-theme-bg-color};
}

.mdc-persistent-drawer {
Expand Down
6 changes: 3 additions & 3 deletions packages/mdc-layout-grid/mdc-layout-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

:root {
@each $size in map-keys($mdc-layout-grid-columns) {
--mdc-layout-grid-margin-#{$size}: map-get($mdc-layout-grid-default-margin, $size);
--mdc-layout-grid-gutter-#{$size}: map-get($mdc-layout-grid-default-gutter, $size);
--mdc-layout-grid-column-width-#{$size}: map-get($mdc-layout-grid-column-width, $size);
--mdc-layout-grid-margin-#{$size}: #{map-get($mdc-layout-grid-default-margin, $size)};
--mdc-layout-grid-gutter-#{$size}: #{map-get($mdc-layout-grid-default-gutter, $size)};
--mdc-layout-grid-column-width-#{$size}: #{map-get($mdc-layout-grid-column-width, $size)};
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/mdc-theme/mdc-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

:root {
@each $style in map-keys($mdc-theme-property-values) {
--mdc-theme-#{$style}: map-get($mdc-theme-property-values, $style);
--mdc-theme-#{$style}: #{map-get($mdc-theme-property-values, $style)};
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/mdc-toolbar/mdc-toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
.mdc-toolbar--flexible {
// stylelint-disable plugin/selector-bem-pattern
// bem linter is disabled because it cannot correctly reconcile mdc prefix for css variables.
--mdc-toolbar-ratio-to-extend-flexible: $mdc-toolbar-ratio-to-extend-flexible;
--mdc-toolbar-ratio-to-extend-flexible: #{$mdc-toolbar-ratio-to-extend-flexible};
// stylelint-enable plugin/selector-bem-pattern

.mdc-toolbar__row:first-child {
Expand Down

0 comments on commit 264c154

Please sign in to comment.