figma-plugin icon indicating copy to clipboard operation
figma-plugin copied to clipboard

Ability To Edit Tokens To Add Nested Levels

Open keeganedwin opened this issue 2 years ago • 1 comments

Describe the bug Currently when you create a token like: button.primary.container and then want to edit it to add an additional level button.primary.container.default. The plugin throws the following error message "Tokens can't share name with a group".

To Reproduce Steps to reproduce the behavior:

  1. Create a token named button.primary.container
  2. After creating, edit the token
  3. Add a '.' to change it to button.primary.container.default
  4. See error

Expected behavior Users should just be able to add additional levels if required. The current work around is to create the token from scratch.

Screenshots or Screencasts CleanShot 2023-11-22 at 16 46 25@2x

CleanShot 2023-11-22 at 16 46 51@2x

keeganedwin avatar Nov 22 '23 11:11 keeganedwin

Figma File Test File

NuthanHyma avatar Jan 11 '24 11:01 NuthanHyma

Added to featurebase roadmap item 💚 Naming conflict error enhancements - QOL

SamIam4Hyma avatar Apr 08 '24 16:04 SamIam4Hyma