Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(theme): Move @alternate annotations for Closure Stylesheets (#2355)
Browse files Browse the repository at this point in the history
`@alternate` annotations need to come before the _second_ property. Otherwise, Closure Compiler strips the first property (it does not output it at all).
  • Loading branch information
acdvorak authored Mar 7, 2018
1 parent 3c04419 commit dc52201
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/mdc-theme/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
$value: map-get($mdc-theme-property-values, $style);

@if $important {
/* @alternate */
#{$property}: $value !important;

@if $edgeOptOut {
Expand All @@ -45,17 +44,18 @@
@supports not (-ms-ime-align:auto) {
// stylelint-disable scss/selector-no-redundant-nesting-selector
& {
/* @alternate */
#{$property}: var(--mdc-theme-#{$style}, $value) !important;
}
// stylelint-enable scss/selector-no-redundant-nesting-selector
}
}
// stylelint-enable max-nesting-depth
} @else {
/* @alternate */
#{$property}: var(--mdc-theme-#{$style}, $value) !important;
}
} @else {
/* @alternate */
#{$property}: $value;

@if $edgeOptOut {
Expand All @@ -64,13 +64,15 @@
@supports not (-ms-ime-align:auto) {
// stylelint-disable scss/selector-no-redundant-nesting-selector
& {
/* @alternate */
#{$property}: var(--mdc-theme-#{$style}, $value);
}
// stylelint-enable scss/selector-no-redundant-nesting-selector
}
}
// stylelint-enable max-nesting-depth
} @else {
/* @alternate */
#{$property}: var(--mdc-theme-#{$style}, $value);
}
}
Expand Down

0 comments on commit dc52201

Please sign in to comment.