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

@at-root generate wrong code with nested mixins #1597

Closed
singggum3b opened this issue Jun 17, 2016 · 1 comment
Closed

@at-root generate wrong code with nested mixins #1597

singggum3b opened this issue Jun 17, 2016 · 1 comment

Comments

@singggum3b
Copy link

@mixin spinner-item($var) {
    .SpinnerItem {
        $bg-color: #7f7f7f; //Local scope variable
        background-color: $bg-color;
    }
}

@mixin hello($var) {
        @include spinner-item($var);
}

.module {
   @at-root {
      @include hello($spinner);
   }
}

output :

.module .SpinnerItem {
.....
}

where i expected SpinnerItem to be at root.
Ruby sass seem to generate correct code.

@xzyfer
Copy link
Contributor

xzyfer commented Jun 17, 2016

This is a duplicate of sass/libsass#2006. Please subscribe to that issue for updates.

@xzyfer xzyfer closed this as completed Jun 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants