Skip to content

Commit

Permalink
Fixed CTA card wrapperStyle for when there is no background color (#1438
Browse files Browse the repository at this point in the history
)

No ref
  • Loading branch information
sanne-san authored Feb 6, 2025
1 parent 39e6839 commit c13c36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/koenig-lexical/src/nodes/CallToActionNode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class CallToActionNode extends BaseCallToActionNode {
return (
<KoenigCardWrapper
nodeKey={this.getKey()}
wrapperStyle={this.backgroundColor ? 'regular' : 'wide'}
wrapperStyle={this.backgroundColor === 'none' ? 'wide' : 'regular'}
>
<CallToActionNodeComponent
backgroundColor={this.backgroundColor}
Expand Down

0 comments on commit c13c36a

Please sign in to comment.