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 inherit from class, which name contains variable #2306

Closed
tompazourek opened this issue Nov 23, 2014 · 2 comments
Closed

Cannot inherit from class, which name contains variable #2306

tompazourek opened this issue Nov 23, 2014 · 2 comments

Comments

@tompazourek
Copy link

Class .other can inherit properties from class .something like this:

.something { ... }
.other {
    ...
    .something;
}

However if the .something class contains variable in its name, it's impossible:

@prefix: abc;

.@{prefix}-something { ... }
.other {
    .@{prefix}-something; // error
}

.other {
    .abc-something; // error as well
}

When I am using third party library, which has classes in the form of .@{prefix}-something (e.g. Font-Awesome icons), I cannot inherit from them.

Or is there some way, which I am missing?

@seven-phases-max
Copy link
Member

See #1399.

P.S. Also note that:

@prefix: abc;

.@{prefix}-something { /* ... */ }

.other {
    .abc-something; // OK
}

works just fine (since v1.6.0).

@seven-phases-max
Copy link
Member

Closing as duplicate of #1399.

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