Errors Caused With Importing Variables Depending On Selected Options #2742
Labels
bug
Something isn't working
Figma variables
token type dimensions
token type number
token value reference broken
status of token
Describe the bug
So currently when a user has number variables setup and imports them with the
Convert Numbers to Dimensions
option, number variables are converted to tokens in the plugin under the Dimension type.Errors Caused:
If you import number variables with
Use REM for Dimension Values
, you get tokens under the Number type with[object object]
as values. One assumption is that the plugin is trying to use REM values for Dimension tokens that don't exist as they're imported as Number tokens.If you import number variables with both options selected
Convert Numbers to Dimensions
andUse REM for Dimension Values
, this results in converting number variables to tokens under the Dimension type withNaNrem
as values.To reproduce:
Please check test file attached below
Expected behavior
With this option selected, values should be imported with REM values
Screenshots or Screencasts
Recording shows token values with [object object] when the
Use REM for Dimension Values
option is selected on importing.https://github.com/tokens-studio/figma-plugin/assets/93133012/4115b30e-79fb-4efa-ae18-ae46f21c7f56
Figma file (optional)
Test file
The text was updated successfully, but these errors were encountered: