-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Selector interpolation: Shouldn't variables be evaluated before the code parse? #2909
Comments
See #1546 (also related to #1328). |
Closing as duplicate of #1546. |
Right. In this case, you're dumping in a string value as is. Less doesn't know what's in the string. |
@seven-phases-max @matthew-dean thank you for your answers. Is there anything I could do to help less to recognize selectors as a variable value? |
It's a sort of complicated thing unfortunately. As the feature may require some less or more major things here and there to be reworked/refactored and potentially may require (at least the way I see it) a complete change of how selectors are stored in the tree internally. There were some discussions spread all over a few threads (so I can't redirect you to any particular one for a detailed info), but the main question to decide was about if we'll need a special In other words, to do something one will need to learn how all this works now and then find/estimate what can be done to improve it (or a sort of). |
This is fixed in #1421. |
I'm working with less for a while. I've used selector interpolation about 4 or 5 times, but I did not had the need to include nested classes over it until now.
So I've came across on what I think it could be a potential issue.
Here's a test case:
Input
Output
Output I was expecting:
The text was updated successfully, but these errors were encountered: