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

extending doesn't work when using a variable as class name #2075

Closed
eladchen opened this issue Jun 28, 2014 · 2 comments
Closed

extending doesn't work when using a variable as class name #2075

eladchen opened this issue Jun 28, 2014 · 2 comments

Comments

@eladchen
Copy link

Here's a short code to trigger the behavior i'm referring to

This works:

.example {
    .table-pagination {
        float: right;
    }
    .table-length:extend(.example .table-pagination) {}
}

This doesn't:

@classname: test;
.@{classname} {
    .table-pagination {
        float: right;
    }

    .table-length:extend(.@{classname} .table-pagination) {}
}

Doesn't work even if @{classname} is with the actual class name - "test"

...Is this the expected behavior ?

@seven-phases-max
Copy link
Member

...Is this the expected behavior ?

Yes. See http://lesscss.org/features/#extend-feature-selector-interpolation-with-extend.

@seven-phases-max
Copy link
Member

Closing as duplicate of #1539.

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