Skip to content

Commit 03c83ba

Browse files
authored
fix(ui): update the free trial badge spacing and rendering (#8712)
1 parent 9fcfda0 commit 03c83ba

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/empty-spiders-happen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/ui': patch
3+
---
4+
5+
"Fix rendering issue for free trial badge."

packages/ui/src/elements/LineItems.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const Title = React.forwardRef<HTMLTableCellElement, TitleProps>(({ title, descr
113113
sx={t => ({
114114
display: 'inline-flex',
115115
alignItems: 'center',
116-
gap: t.space.$1,
116+
gap: t.space.$2,
117117
})}
118118
>
119119
{icon ? (
@@ -124,7 +124,7 @@ const Title = React.forwardRef<HTMLTableCellElement, TitleProps>(({ title, descr
124124
/>
125125
) : null}
126126
<Span localizationKey={title} />
127-
{badge}
127+
{badge ? <Box>{badge}</Box> : null}
128128
</Span>
129129
) : null}
130130
{descriptionElements.length > 0 ? (

0 commit comments

Comments
 (0)