Skip to content

Parent selectors (in mixins) are ignored in referenced files #1646

Closed
@nsdcss

Description

@nsdcss

Hi, I am playing around with the new @import (reference) ... feature and encountered a strange behavior.

If I am using the parent selector "&" inside a mixin that is located in a file that is imported with the (reference) statement (and then call the mixin from another file) all the parent-selectors are ignored.

So if I have this in the mixin:

a {
  color: #f00;
  &:hover {
    color: #0f0;  
  }
}

This is what comes out:

a {
  color: #f00;
}

Beside that the reference feature is really great. Thank you for that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions