From 813bd3d105f8b1a59d6815d19dd058711ea586b6 Mon Sep 17 00:00:00 2001 From: Alex Carpenter Date: Thu, 8 May 2025 09:57:27 -0400 Subject: [PATCH 1/2] fix(clerk-js): PlanCard whitespace when ctaPostion is top --- .../src/ui/components/PricingTable/PricingTableDefault.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clerk-js/src/ui/components/PricingTable/PricingTableDefault.tsx b/packages/clerk-js/src/ui/components/PricingTable/PricingTableDefault.tsx index c34e0f3863c..71918508969 100644 --- a/packages/clerk-js/src/ui/components/PricingTable/PricingTableDefault.tsx +++ b/packages/clerk-js/src/ui/components/PricingTable/PricingTableDefault.tsx @@ -193,7 +193,7 @@ function Card(props: CardProps) { gap: 0, }} > - {!collapseFeatures ? ( + {(ctaPosition === 'bottom' && !collapseFeatures) || (ctaPosition === 'top' && hasFeatures) ? ( ({ From 23c4d94da0883a64553a78561e668713cde0721f Mon Sep 17 00:00:00 2001 From: Alex Carpenter Date: Thu, 8 May 2025 09:58:05 -0400 Subject: [PATCH 2/2] add changeset --- .changeset/ten-forks-shout.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/ten-forks-shout.md diff --git a/.changeset/ten-forks-shout.md b/.changeset/ten-forks-shout.md new file mode 100644 index 00000000000..9aa760f02b4 --- /dev/null +++ b/.changeset/ten-forks-shout.md @@ -0,0 +1,5 @@ +--- +'@clerk/clerk-js': patch +--- + +Removes white space from PlanCard when the ctaPosition is top and there are no features