Skip to content

Commit f6f890c

Browse files
fix(clerk-js): ArrowButtonBlock truncation within payment sources (#6764)
1 parent 7c976b4 commit f6f890c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/gold-cases-smash.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 ArrowButtonBlock truncation within payment sources

packages/clerk-js/src/ui/elements/ArrowBlockButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const ArrowBlockButton = React.forwardRef<HTMLButtonElement, ArrowBlockBu
7878
{(isLoading || leftIcon) && (
7979
<Flex
8080
as='span'
81-
sx={theme => ({ flex: `0 0 ${theme.space.$5}` })}
81+
sx={theme => ({ width: theme.space.$5, height: theme.space.$5, flex: 'none', alignItems: 'center' })}
8282
>
8383
{isLoading ? (
8484
<Spinner
@@ -94,6 +94,8 @@ export const ArrowBlockButton = React.forwardRef<HTMLButtonElement, ArrowBlockBu
9494
sx={[
9595
theme => ({
9696
width: theme.sizes.$5,
97+
// Fixes a bug in Safari where the icon shifts when navigating between routes.
98+
transform: 'translateZ(0)',
9799
}),
98100
leftIconSx,
99101
]}

0 commit comments

Comments
 (0)