Skip to content

Parent selector interpolation not working? #614

@zlobec

Description

@zlobec

I have the v0.7.6 and the parent selector interpolation is not working when defined as:

display {
   $prefix: &;
   @at-root {
     [class^="#{$prefix}"] {
     text-transform: uppercase;
   }
 }
}

I get the error: parse error: failed at $c: &; (stdin)

I managed to get the workaround, but I need to define the parent as a string variable.

display {
   @at-root {
     $prefix: display;
     [class^="#{$prefix}"] {
       text-transform: uppercase;
     }
   }
}

Or I'm i doing something wrong? Thanks for the response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions