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.32k stars 190 forks source link

Behavior change of { MentionsInput when replacing existing tokens #2879

Open six7 opened 2 weeks ago

six7 commented 2 weeks ago

2.0 changed something on behavior when it comes to replacing parts of a token reference with something that the user picks from the { mentions input.

Expected: The token reference as a whole is replaced. Actual: We insert double curly brackets and force the user to replace it manually

We should fix this behavior with an upgrade to our custom solution of a MentionsInput instead of relying on rc-mentions which produces this behavior AFAIK.

https://github.com/tokens-studio/figma-plugin/assets/4548309/86621eb3-0ed3-460f-a8ec-e6cbb6f611fc