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

Extend hyphen named class name does not work #2893

Closed
AlexanderTserkovniy opened this issue May 5, 2016 · 4 comments
Closed

Extend hyphen named class name does not work #2893

AlexanderTserkovniy opened this issue May 5, 2016 · 4 comments

Comments

@AlexanderTserkovniy
Copy link

AlexanderTserkovniy commented May 5, 2016

Hey guys,

Does not work next:

@import (reference) "utils"; // has .u-relative { position: relative; }

.aaa {
  &:extend(.u-relative);
}

But works well when there is not hyphen here u- like that:

@import (reference) "utils"; // has .urelative { position: relative; }

.aaa {
  &:extend(.urelative);
}

Expect:
.aaa { position: relative; }

Actual:
.aaa {} or does not exist at all.

Please extend this test, or similar with one letter before dash in :extend

P.S. Possibly the same problem as for #1328 here mentioned.

P.P.S. extend of .uu-relative works well.

@seven-phases-max
Copy link
Member

I can't reproduce you results with recent Less versions (i.e. 2.5.x-2.6.x).

@AlexanderTserkovniy
Copy link
Author

AlexanderTserkovniy commented May 5, 2016

I have created small project for this:
https://github.com/AlexanderTserkovniy/less-hyphen-extend

To run please install less and run via bin folder b.less file.

@seven-phases-max
Copy link
Member

seven-phases-max commented May 5, 2016

See #2200 part 2. It has nothing to do with hyphen (see example).

@seven-phases-max
Copy link
Member

Closing as duplicate of #2200.

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