code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

Nested component variant restriction bug

Open alisonjoseph opened this issue 1 year ago • 1 comments

I'm seeing a bug with nested components connected with variant restrictions.

When I view the Code Connect code from the parent component the child component code ignores the variant restrictions and just renders the first code connect code sample. However if I view each nested component individually the correct code appears.

Breadcrumb (parent)

Screenshot 2024-05-16 at 1 02 31 PM

vs. Breadcrumb item (child)

Screenshot 2024-05-16 at 1 03 07 PM Screenshot 2024-05-16 at 1 03 32 PM

My figma.tsx file is here https://github.com/carbon-design-system/carbon/pull/16348/files#diff-38ea233b4b838e2f4e41e8bbd621f7524ce7496d17ef86aa3826b33f7157f9b3R16

alisonjoseph avatar May 16 '24 18:05 alisonjoseph

Hi Alison, thanks for the report! The team is aware of this issue and we'll be hopefully solving it soon. Will keep you posted in this thread when the fix gets released.

ptomas-figma avatar May 17 '24 09:05 ptomas-figma

Confirmed this is fixed, thanks ya'll! 🥳

alisonjoseph avatar Jun 18 '24 18:06 alisonjoseph