figma-plugin
figma-plugin copied to clipboard
Documentation "skips" tokens
Describe the bug When inspecting a component, I clearly see multiple color tokens applied. When using the deep inspect and hitting the documentation function, the resulting annotation does not hold the specific token
To Reproduce Steps to reproduce the behavior:
- Go to a nested component with multiple color tokens
- Click on deep inspect and create the annotations
- You'll see the color tokens are missing.
Expected behavior I'd see all color tokens
Screenshots or Screencasts https://www.loom.com/share/3e07e93c616e4ed0b4bbf14e526dcff8
In the screencast you have Deep inspect
on, which shows you tokens not only from this layer, but from layers beneath it.
Annotations always only apply what's stored on the current layer.
Thats the reason why there's just 1 color visible, but Inspect shows 2.
Let me know if that doesn't solve your issue, otherwise I'd close this in a couple days.
OK, that businessrule was not clear to me. I thought the annotation would respect the "deep inspect" selection. Got it.