Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use an interpolated selector as a mixin. #1819

Closed
donaldpipowitch opened this issue Jan 22, 2014 · 2 comments
Closed

Cannot use an interpolated selector as a mixin. #1819

donaldpipowitch opened this issue Jan 22, 2014 · 2 comments

Comments

@donaldpipowitch
Copy link

I want to use an interpolated selector as a mixin:

@prefix: test;

.@{prefix}-hello {
  color: red;
}

.world {
  .@{prefix}-hello;
}

I would expect this outcome:

.test-hello {
  color: red;
}
.world {
  color: red;
}

But I get this error:

>> ParseError: Unrecognised input in src/scaffolding.less on line 20, column 3:
>> 19 .world {
>> 20   .@{prefix}-hello;
>> 21 }

@SomMeri
Copy link
Member

SomMeri commented Jan 22, 2014

I think it is a duplicate of this one #1399 . Feel free to join the discussion or add +1 there.

Overview: it is an open feature request. It is hard to define how exactly should this feature work. We are collecting various border cases and possible solutions so we can properly define how exactly it should behave. It would be great if you could help us to define this feature.

@SomMeri SomMeri closed this as completed Jan 22, 2014
@donaldpipowitch
Copy link
Author

Thank you for your advice @SomMeri.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants