-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1056: Fix view finding for @DesignComponent functions on a co…
…mponent set. (#1076) Historically when a @DesignComponent is declared with a component set, the component set name must match the property name in a @DesignVariant parameter in order for the view matching algorithm to use the correct variant at runtime. This has always been confusing and undocumented, so this change allows the property name to differ from the component set name. The view searching algorithm now checks at runtime of a node is actually a variant of a component set, and uses that if so. Then, in order to support TapCallback using the name of the component set, populate variantParentName if we have the component set info to do so. The VariantProperties test has been updated to test this scenario.
- Loading branch information
Showing
5 changed files
with
66 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-147 Bytes
(100%)
...ests/validation/src/main/assets/figma/VariantPropertiesTestDoc_4P7zDdrQxj7FZsKJoIQcx1.dcf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters