You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and Use REM for Dimension Values, this results in converting number variables to tokens under the Dimension type with NaNrem as values.
To reproduce:
Please check test file attached below
Expected behavior
With this option selected, values should be imported with REM values
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: