deadsimple-less-watch-compiler icon indicating copy to clipboard operation
deadsimple-less-watch-compiler copied to clipboard

Can't use `rgba()` to modify a var

Open daveisfera opened this issue 4 years ago • 4 comments

Which version are you using (less-watch-compiler --version to find out)? 1.14.6

Is the issue reproducible after updating to the latest version ( npm update less-watch-compiler)? Yes

Describe the bug Can't specify --modify-var with rgba()

To Reproduce Steps to reproduce the behavior: Run `--less-args "modify-var='text-color-primary=rgba(23, 34, 45, 0.5)'

Actual behavior rgba() call is split into separate args

Expected behavior There's a way to pass rgba() to lessc

Desktop (please complete the following information):

  • OS: macOS 10.15.3

daveisfera avatar Mar 12 '20 19:03 daveisfera

Sorry for the late reply. It was running less 3.8.1. Do you know if this is a new feature in less 4? I can probably just upgrade the dependency here if so.

jonycheung avatar May 03 '21 13:05 jonycheung

v1.15.1 has less v4. Could you try it again and reopen if this doesn't work?

jonycheung avatar May 08 '21 10:05 jonycheung

The issue wouldn't be solved with less upgrade because I need to ignore parsing your commas in the parenthesis. I'll have to look into it.

jonycheung avatar May 08 '21 11:05 jonycheung

Leaving a note for myself - this may help.

jonycheung avatar May 08 '21 11:05 jonycheung