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

Interpolated class names cannot be used in :extend syntax #1787

Closed
Craga89 opened this issue Jan 8, 2014 · 2 comments
Closed

Interpolated class names cannot be used in :extend syntax #1787

Craga89 opened this issue Jan 8, 2014 · 2 comments

Comments

@Craga89
Copy link

Craga89 commented Jan 8, 2014

LESS cannot currently use the :extend syntax to extend styles which are applied using an "interpolated" selector. For example:

@className: test;

.@{className}{
  background-color: red;
}

.otherClass:extend(.test){}

Is this a bug? Or simply a side effect of the class name interpolation?

@Craga89
Copy link
Author

Craga89 commented Jan 8, 2014

Sorry, looks like I've found a discussion of the problem here: https://stackoverflow.com/questions/19602812/less-mixin-a-variable-class-name

@Craga89 Craga89 closed this as completed Jan 8, 2014
@SomMeri
Copy link
Member

SomMeri commented Jan 8, 2014

That issue is tracked here: #1539 . In short, it is an open feature request, but the discussion contains also workaround.

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