Skip to content

Commit 3a40d65

Browse files
fix(clerk-js): Reset ul list styling within pricing table and plan details (#5755)
1 parent 1790ab8 commit 3a40d65

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

.changeset/rare-memes-count.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+
Fix list spacing within PricingTable and PlanDetails components.

packages/clerk-js/src/ui/components/Plans/PlanDetails.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ const _PlanDetails = ({
151151
display: 'grid',
152152
rowGap: t.space.$6,
153153
padding: t.space.$4,
154+
margin: 0,
154155
})}
155156
>
156157
{features.map(feature => (

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,8 @@ const CardFeaturesList = React.forwardRef<HTMLDivElement, CardFeaturesListProps>
470470
sx={t => ({
471471
flex: '1',
472472
rowGap: isCompact ? t.space.$2 : t.space.$3,
473+
margin: 0,
474+
padding: 0,
473475
})}
474476
>
475477
{plan.features.slice(0, hasMoreFeatures ? (isCompact ? 3 : 8) : totalFeatures).map(feature => (
@@ -482,6 +484,8 @@ const CardFeaturesList = React.forwardRef<HTMLDivElement, CardFeaturesListProps>
482484
display: 'flex',
483485
alignItems: 'baseline',
484486
gap: t.space.$2,
487+
margin: 0,
488+
padding: 0,
485489
})}
486490
>
487491
<Icon

0 commit comments

Comments
 (0)