Skip to content

Commit 4607477

Browse files
authored
Designer: Add margin and fix gen issues (#230)
1 parent 38cbaf0 commit 4607477

File tree

7 files changed

+769
-735
lines changed

7 files changed

+769
-735
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Add support for margin properties",
4+
"packageName": "@adaptive-web/adaptive-ui",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Add support for margin properties",
4+
"packageName": "@adaptive-web/adaptive-ui-designer-figma",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/adaptive-ui-designer-figma/src/lib/anatomy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function parseComponent(node: PluginUINodeData): Anatomy {
230230
function isContextNode(node: PluginUINodeData, componentName: string): boolean {
231231
// Remove non-ascii characters (we tried a convention of decorating template node names)
232232
const nodeName = node.name.replace(/[^\x20-\x7F]/g, "").trim();
233-
return node.type === "COMPONENT" || nodeName.toLowerCase() === componentName.toLowerCase();
233+
return node.type === "COMPONENT" || componentName.toLowerCase().indexOf(nodeName.toLowerCase()) !== -1;
234234
}
235235

236236
function walkNode(node: PluginUINodeData, componentName: string, condition: Record<string, string | boolean> | undefined, anatomy: Anatomy): void {

0 commit comments

Comments
 (0)