Skip to content

Commit

Permalink
fix(checkbox): Avoid using & within @at-root context (#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfranqueiro committed Feb 12, 2018
1 parent b57226a commit 665cf12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mdc-checkbox/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

@if $generate-keyframes {
$uid: mdc-checkbox-container-keyframes-uid_();
$anim-selector: if(&, "&.mdc-checkbox--anim", ".mdc-checkbox--anim");

@include mdc-checkbox-container-keyframes_(
$from-stroke-color: $unmarked-stroke-color,
Expand All @@ -49,7 +50,7 @@
$to-fill-color: $marked-fill-color,
$uid: $uid);

&.mdc-checkbox--anim {
#{$anim-selector} {
&-unchecked-checked,
&-unchecked-indeterminate {
.mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background {
Expand Down

0 comments on commit 665cf12

Please sign in to comment.