Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming Tokens in Tokens Studio Does Not Remap or Rename Local Variables in Document when exporting as Sets #3193

Open
NuthanHyma opened this issue Oct 29, 2024 · 0 comments

Comments

@NuthanHyma
Copy link
Collaborator

NuthanHyma commented Oct 29, 2024

Describe the bug
When tokens are exported to Figma based on sets, renaming a token in Plugin and selecting Rename variables in the Document in the Remap all tokens that use tokens modal does not rename or remap local variables as expected. Furthermore, exporting styles and variables to Figma removes previously named variables and adds new ones, which breaks references to the original setup. However, this process works correctly when styles and variables are created based on themes.

Note: remapping and renaming does work properly when exporting using themes

To Reproduce
Steps to reproduce the behavior:

  1. Create variables based on token sets
  2. now rename any token
  3. Select the document and rename variables options in the Remap all tokens that use tokens in model
  4. see the variables are not renamed.

Expected behavior
Renaming a token and selecting “Rename variables in the Document” should rename and remap local variables accordingly. Exporting to Figma should update the variable names without removing or breaking references to existing variables.

Screenshots or Screencasts

Screen.Recording.2024-10-30.at.4.19.23.PM.mov
@NuthanHyma NuthanHyma added the bug Something isn't working label Oct 29, 2024
@rbosker rbosker changed the title Renaming Tokens in Tokens Studio Does Not Remap or Rename Local Variables in Document Renaming Tokens in Tokens Studio Does Not Remap or Rename Local Variables in Document when exporting as Sets Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📥 Triage
Development

No branches or pull requests

4 participants