-
Notifications
You must be signed in to change notification settings - Fork 334
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
Tailwind (JSX) Not Generated when Selecting Components Variants Within Component Group #168
Comments
sos @Lampenbauer |
@bernaferrari I have just investigated and found the point at which the ability to select Figma component sets and variants within component sets no longer works. The bug occurred a little over a month ago, but was only noticed/reported now. It also affects all modes (HTML, Tailwind, etc.). @mimshwright can you try to fix this please? ![]() |
Wow, you went a lot deeper than I thought, thanks a lot! |
To add some details to this bug:
|
I'll start by saying that I am a designer who is coordinating with our development team the use of Figma Dev-Mode and the Figma to Code plugin. We also just acquired Figma in the last couple of months, so I'm still learning the ins-and-outs of the tool. I apologize in advance if the solution to this issue is something that doesn't pertain to your fantastic plugin.
With that being said, it appears that the Figma to Code plugin is not generating code when selecting a component variant (within the component group outlined in purple) in Dev mode. It will display the code just fine if you make a separate, single instance of the component, but for our documentation process we would prefer to deliver components to the dev team in their original component groups. The weird thing is that it seemed to have been working initially, but now when I, or other devs on the team, try to use the plugin by selecting a component variant, it either loads forever or simply does not display any code. Is this a know issue, and if so are there any work-arounds? I'm not sure if this is a limitation of Figma or with the Figma to Code plugin, but it is a feature that would be highly beneficial for our usage. Screenshots for reference:
Selecting the desired component variant from the "plugin" sidebar indicates that "no layer is selected." I've tested with other code-gen plugins and they are able to recognize the component variant and generate code:
Selecting a component variant within it's component group (and the code not being displayed):
Figma to Code properly generating Tailwind JSX for an individual separate instance of the component:
Again, the desired/expected outcome from the perspective of our team would be that Figma to Code would generate the Tailwind JSX when selecting the component variant within each component group. Any follow-up would be greatly appreciated.
The text was updated successfully, but these errors were encountered: