Skip to content

Can't apply mixin as varible from a namespace #3406

Open
@ahultgren

Description

@ahultgren

This might be related to #3405:

.mix (@n) {
  value: @n;
}

@var: .mix(var);

#lookup {
  @var: .mix(lookup);
  @bar: bar;
}

.example {
  @var();
  value2: #lookup[@bar];

  // This is what I'm trying to do, since the above works:
  #lookup[@var]();
}

Expected:

.example {
  value: lookup;
  value2: bar;
}

Actual: unexpected token.

In this case I can't find a workaround using detached rulesets, but since @var() works I expect the nested syntax #lookup[@var]() to work as well.

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