A round trip does not preserve what the spec records about a code-only prop backed by a variant picker instance. Out of scope for launch, alongside #344, which concerns the same class of prop.
What changes
- The prop loses the component it came from.
$extensions['com.figma'].source.instanceOf, which names the picker component set the prop's layer is an instance of, is not reproduced. - The prop's Figma type changes. A prop the spec records as
type: VARIANT reads back as type: BOOLEAN. The value survives; the statement about how Figma expresses it does not.
Why they belong together
Both concern a code-only prop whose value comes from an INSTANCE of a picker component set carrying a single VARIANT property — the boolean-valued kind, in this case, where the picker's two options are False and True. Render rebuilds a code-only prop from its recorded provenance, so provenance that does not survive means the rebuilt layer is not the layer the source had, and the next read of it differs again.
#344 concerns the naming of these same props, where the picker's internal variant key collides with a native property name. A fix for either should be weighed against the other.
Where it was seen
A text input, whose Code only props frame holds an Interaction instance of Code only props /_ / Text input interaction.
A round trip does not preserve what the spec records about a code-only prop backed by a variant picker instance. Out of scope for launch, alongside #344, which concerns the same class of prop.
What changes
$extensions['com.figma'].source.instanceOf, which names the picker component set the prop's layer is an instance of, is not reproduced.type: VARIANTreads back astype: BOOLEAN. The value survives; the statement about how Figma expresses it does not.Why they belong together
Both concern a code-only prop whose value comes from an INSTANCE of a picker component set carrying a single VARIANT property — the boolean-valued kind, in this case, where the picker's two options are
FalseandTrue. Render rebuilds a code-only prop from its recorded provenance, so provenance that does not survive means the rebuilt layer is not the layer the source had, and the next read of it differs again.#344 concerns the naming of these same props, where the picker's internal variant key collides with a native property name. A fix for either should be weighed against the other.
Where it was seen
A text input, whose
Code only propsframe holds anInteractioninstance of Code only props /_ / Text input interaction.