Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 00a9e55

Browse files
committedJan 21, 2025·
Added background colour
1 parent 0e29e2e commit 00a9e55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎packages/kg-default-nodes/lib/nodes/call-to-action/CallToActionNode.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class CallToActionNode extends generateDecoratorNode({nodeType: 'call-to-
2424
buttonUrl,
2525
hasSponsorLabel,
2626
hasBackground,
27+
backgroundColor,
2728
hasImage,
2829
imageUrl
2930
} = {}, key) {
@@ -35,6 +36,7 @@ export class CallToActionNode extends generateDecoratorNode({nodeType: 'call-to-
3536
this.__buttonUrl = buttonUrl || '';
3637
this.__hasSponsorLabel = hasSponsorLabel || false;
3738
this.__hasBackground = hasBackground || false;
39+
this.__backgroundColor = backgroundColor || '#123456';
3840
this.__hasImage = hasImage || false;
3941
this.__imageUrl = imageUrl || '';
4042
}

0 commit comments

Comments
 (0)
Please sign in to comment.