Skip to content

Commit a92f8fe

Browse files
fix(clerk-js): PlanCard whitespace when ctaPostion is top (#5885)
1 parent 5217155 commit a92f8fe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/ten-forks-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Removes white space from PlanCard when the ctaPosition is top and there are no features

packages/clerk-js/src/ui/components/PricingTable/PricingTableDefault.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function Card(props: CardProps) {
193193
gap: 0,
194194
}}
195195
>
196-
{!collapseFeatures ? (
196+
{(ctaPosition === 'bottom' && !collapseFeatures) || (ctaPosition === 'top' && hasFeatures) ? (
197197
<Box
198198
elementDescriptor={descriptors.pricingTableCardFeatures}
199199
sx={t => ({

0 commit comments

Comments
 (0)