tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.34k stars 194 forks source link

LineHeight Variables Not Binding and Applying With Styles #2820

Closed keeganedwin closed 2 months ago

keeganedwin commented 2 months ago

Describe the bug If you have line-height tokens setup using rem values, create styles with variable references and apply the token, the line-height variable isn't applied. However, if you apply the line-height token as a particle in the typography type then create styles with variables references and apply the token, the variable is applied as well.

To Reproduce Reproduction steps available in the test file link below.

Expected behavior The line-height's token should also have its variable applied even if applied as a particle token and not just part of the typography token.

Screenshots or Screencasts https://github.com/tokens-studio/figma-plugin/assets/93133012/b6f10d4f-2fc4-4988-a7bb-9cb8b0336396

Figma file (optional) Test section