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

Documentation "skips" tokens

Open neatlittlemacapps opened this issue 2 years ago • 3 comments

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:

  1. Go to a nested component with multiple color tokens
  2. Click on deep inspect and create the annotations
  3. 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

neatlittlemacapps avatar Aug 04 '22 10:08 neatlittlemacapps

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.

six7 avatar Aug 09 '22 21:08 six7

Let me know if that doesn't solve your issue, otherwise I'd close this in a couple days.

six7 avatar Aug 09 '22 21:08 six7

OK, that businessrule was not clear to me. I thought the annotation would respect the "deep inspect" selection. Got it.

neatlittlemacapps avatar Aug 10 '22 08:08 neatlittlemacapps