Skip to content

Commit

Permalink
Fix finding bg with opacity fills.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhin committed Oct 5, 2023
1 parent 2ee0006 commit 1354bab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/services/figma/nodes/get-actual-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ export const getActualNode = (nodes: FigmaNode[]): FigmaNode | undefined => {
node.visible === true &&
notEmpty(node.opacity) &&
node.opacity > 0 &&
node.fills.length > 0
node.fills.length > 0 &&
node.fills.some(
(fill) =>
fill.visible === true && notEmpty(fill.opacity) && fill.opacity > 0
)
);
};

0 comments on commit 1354bab

Please sign in to comment.