-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Figma Code Connect ☂️ #16273
Comments
Variable modes aren't currently supported. (we are using them for AI presence) figma/code-connect#6 Components with no issues 🥳
Components tested with issues/bugs 🐞FluidComboBox
FluidMultiSelect
Treeview
OverflowMenuItem
MenuItem
Form
Time pickerDate picker
ProgressIndicator
Fluid componentsFluidTextInputContainedList
UnorderedList/OrderedList
FluidSearch, FluidSearchSkeleton
RadioButton
FluidSelect
NumberInput / NumberInputSkeleton
Dropdown / DropdownSkeletonAccordionSkeleton
Tabs
Notification
DataTable
Breadcrumb / BreadcrumbItem
Checkbox / CheckboxGroup
CodeSnippet
Inline
Single
Multiline
Skeleton
Toggle |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@juanencalada I'm still pretty new to Figma, but was looking at seeing if there was a way to bring nested properties from children into their parent and found this. https://forum.figma.com/t/add-a-forward-props-property-on-parent-component-inherit-props-from-a-selected-child-component/27875/2 Would this work with the way things are built in Carbon? |
Hey @alisonjoseph, yes this is possible and something we do in several components already. However, it happens for each nested component, so we don't do it in cases where we have lots of nested components like in an accordion or dropdown because it would make the properties panel really long and harder to navigate. Unfortunately, there's currently also no control over which nested props we want to surface, so it's all or nothing. Meaning, we might expose properties we don't want to expose. If for example we have an accordion with left aligned, and we exposed the props of all accordion items, the right align prop would be visible there too which would just be noise. |
@juanencalada hmm, for Accordion specifically I think we would want most of the properties exposed. I suppose the ones that would be weird/confusing would be the state or titleText since those need to be set on the individual item. There should never be an instance where someone is right and left aligning items within the same Accordion. |
@juanencalada another thing to keep in mind is that anything that changes or gets renamed in Figma will break Code Connect. It looks like sometime in the last few days Dropdown changed "Label text" to "Label" and that completely broke publishing. I was able to fix the error, however my sample Figma file with dropdown didn't update and code connect stopped working with an error that Label didn't exist when swapping to dev mode. Not sure how often changes like this happen? |
Hey Alison, that makes sense and thanks for highlighting this! I don't think this happens too often. Most common would be around times when there are new feature releases or a component is getting updated for some reason. This one in particular I had noticed the other day that the naming of the props wasn't matching how we name similar props in other components so that's probably what changed here. I think something we could do is a full audit of the component props to ensure we have the consistency we want at least within Figma to minimize any breaking changes, as well communicate around release schedules to ensure component props are aligned across design and dev. Something that comes to mind is I wonder if good feedback for Figma might be having some alias associated with the props so that if a prop name changes it's not entirely dependent on that to make a connection from the Figma side. Just a thought but might not be much there. |
Closing, remaining work being tracked here #17606 |
Research and test feasibility of using Figma Code Connect to link Carbon Figma and Carbon React for AI readiness.
Demo video https://www.youtube.com/watch?v=5GVNfbltrQg
Demo repo https://github.com/jake-figma/code-connect-demo
Tasks
Audit/connect all components
Connect / attempt to connect all components.
Document mismatch between Figma / code & create issues where appropriate.
Followup with Figma / create issues on needed functionality.
Components
The text was updated successfully, but these errors were encountered: