Skip to content

Commit a48de44

Browse files
refactor(clerk-js): Update ArrowBlockButton icon sizing (#6803)
1 parent ef501a7 commit a48de44

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/rich-sites-drop.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+
Update `<ArrowBlockButton />` icon sizing to be consistent with usage within billing components

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const ArrowBlockButton = React.forwardRef<HTMLButtonElement, ArrowBlockBu
5959
ref={ref}
6060
sx={theme => [
6161
{
62-
gap: theme.space.$1,
62+
gap: theme.space.$2,
6363
position: 'relative',
6464
justifyContent: 'center',
6565
borderColor: theme.colors.$neutralAlpha100,
@@ -78,7 +78,7 @@ export const ArrowBlockButton = React.forwardRef<HTMLButtonElement, ArrowBlockBu
7878
{(isLoading || leftIcon) && (
7979
<Flex
8080
as='span'
81-
sx={theme => ({ width: theme.space.$5, height: theme.space.$5, flex: 'none', alignItems: 'center' })}
81+
sx={theme => ({ width: theme.space.$4, height: theme.space.$4, flex: 'none', alignItems: 'center' })}
8282
>
8383
{isLoading ? (
8484
<Spinner
@@ -93,7 +93,7 @@ export const ArrowBlockButton = React.forwardRef<HTMLButtonElement, ArrowBlockBu
9393
icon={leftIcon as React.ComponentType}
9494
sx={[
9595
theme => ({
96-
width: theme.sizes.$5,
96+
width: theme.sizes.$4,
9797
// Fixes a bug in Safari where the icon shifts when navigating between routes.
9898
transform: 'translateZ(0)',
9999
}),

0 commit comments

Comments
 (0)