Skip to content

Commit

Permalink
Merge pull request #206 from gridaco/support-flex
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
softmarshmallow authored Dec 11, 2023
2 parents 779b2cc + 73b0b2b commit 1fd8116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/designto-token/detection/do-have-stretching.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { ReflectSceneNode } from "@design-sdk/figma-node";

export function hasStretching(node: ReflectSceneNode) {
export function hasStretching(node: ReflectSceneNode): boolean {
// FIXME: this should reflect layoutGrow as well.
return node.layoutAlign && node.layoutAlign === "STRETCH";
}

1 comment on commit 1fd8116

@vercel
Copy link

@vercel vercel bot commented on 1fd8116 Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.