sd-transforms: [Bug]: resolve math with triple multi-value + references is not working

What happened?

issue when three things are combined:

  • math expression
  • multi-value (with spaces to separate them)
  • token references
{
  "scale": {
    "value": 4,
    "type": "spacing"
  },
  "2xs": {
    "value": "{scale}*1.5",
    "type": "spacing"
  },
  "foo": {
    "value": "{2xs} {2xs} {2xs}",
    "type": "spacing"
  }
}

the output of foo, the math is not resolved in the 2nd and 3rd value, we get 6px 4px*1.5 4px*1.5

Reproduction

repro

Expected output

we expect 6px 6px 6px

Version

0.9.10

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments