Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Interpolation names replace colors names with css color hex #347

Closed
minimit opened this issue Apr 4, 2017 · 2 comments
Closed

Interpolation names replace colors names with css color hex #347

minimit opened this issue Apr 4, 2017 · 2 comments

Comments

@minimit
Copy link

minimit commented Apr 4, 2017

As title, this:
@colors: white #ffffff; .color { .for(@colors); .-each(@value) { @name: extract(@value, 1); &-@{name} { color: extract(@value, 2) !important; } } }

Exports this:
.color-#fff { color: #fff !important; }

Should export this instead:
.color-white { color: #fff !important; }

I also tried with this old less.js fix that had the same problem, but it doesn't work:
less/less.js#864

@seven-phases-max
Copy link

use @colors: ~'white' #ffffff; instead.

@minimit
Copy link
Author

minimit commented Apr 4, 2017

Perfect it works well

@minimit minimit closed this as completed Apr 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants