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

can't extend a class created with nesting #2113

Closed
valan opened this issue Jul 17, 2014 · 2 comments
Closed

can't extend a class created with nesting #2113

valan opened this issue Jul 17, 2014 · 2 comments

Comments

@valan
Copy link

valan commented Jul 17, 2014

#1207 fixed extending selectors declared in nested format, but I am not able to extend a class that was built with nesting. for example:

input:

.button {
    border: 1px solid #000;
    &alt {
        background: red;
    }
}
.foo {
    &:extend(.buttonalt);
}

expected:

.button {
  border: 1px solid #000;
}
.buttonalt,
.foo {
  background: red;
}

actual:

.button {
  border: 1px solid #000;
}
.buttonalt {
  background: red;
}

I use long class names in an object oriented css approach and nesting helps generate those in an organized fashion, it would be nice to be able to extend those classes

@seven-phases-max
Copy link
Member

See #1539.

@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