We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
let's say I have this less:
@threshold:{ a:50; b:200; }; @themes:{ a:red; b:blue; }; .mymixin(@name,@color,@thrshld){ //do-something } each(@themes,{ .mymixin(@key,@value,@threshold[@key]); });
This code gives following error:
RuntimeError: error evaluating function each: variable @key not found...
each
I'm using v3.9.0
How can I use Maps in each function?
The text was updated successfully, but these errors were encountered:
You can achieve that using $@ (Variable properties):
$@
each(@themes,{ .mymixin(@key,@value,@threshold[$@key]); });
See: #3362 and docs issue: less/less-docs#500
Sorry, something went wrong.
Closing as not an issue.
No branches or pull requests
let's say I have this less:
This code gives following error:
I'm using v3.9.0
How can I use Maps in each function?
The text was updated successfully, but these errors were encountered: