Closed cuserox closed 2 weeks ago
applyBorderValuesOnNode
, applyBorderRadiusValuesOnNode
... if these fail, it gets caught at the end, thus not applying any other values (i.e. applyColorTokenOnNode
) lower down{density.dimensions.interaction.border-radius.sm}
, {density.dimensions.interaction.focus.border-width}
, density.dimensions.interaction.focus.border-width
, etc)values.borderRadius
is still referencing an alias, hence causing NaN
See the width value is also referencing an alias:
In production, and also in RC8 (pre v2 release)
🧐 Questions to answer
Video attached of it occurring in production: https://github.com/tokens-studio/figma-plugin/assets/114073780/7970c2a7-904c-4fb2-b7f9-f4637884f225
NaN
error no longer exists in RC8 (as we had all the tokens referenced correctly!){
"message": "in set_textDecoration: Cannot write to node with unloaded font \"FK Grotesk Neue Regular\". Please call figma.loadFontAsync({ family: \"FK Grotesk Neue\", style: \"Regular\" }) and await the returned promise first."
},
{
"message": "in set_paragraphIndent: Cannot write to node with unloaded font \"FK Grotesk Neue Regular\". Please call figma.loadFontAsync({ family: \"FK Grotesk Neue\", style: \"Regular\" }) and await the returned promise first."
}
Surface friendlier errors to the user when Apply to X doesn't work
Describe the bug Given a set of composition tokens to apply to a component, when applying, errors when setting certain characteristics means the changes are not applied
To Reproduce Steps to reproduce the behavior:
Expected behavior Composition tokens to be visible on the component
Screenshots or Screencasts Original thread