Skip to content

Commit b09788e

Browse files
fix(ui): Stepper UI wrapping improvements (#8693)
Co-authored-by: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com>
1 parent a1d96f1 commit b09788e

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.changeset/neat-mild-pale.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 stepper chevron wrapping in `<ConfigureSSO />`

packages/ui/src/components/ConfigureSSO/elements/Stepper/Stepper.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import { Box, descriptors, Flex, Icon, SimpleButton, Text } from '@/customizables';
3+
import { Box, descriptors, Flex, Icon, SimpleButton, Text, Span } from '@/customizables';
44
import { ChevronRight, Checkmark } from '@/icons';
55

66
import type { StepperItemProps, StepperProps } from './types';
@@ -18,8 +18,15 @@ const Root = ({ children }: StepperProps): JSX.Element => {
1818
})}
1919
>
2020
{items.map((child, index) => (
21-
// eslint-disable-next-line react/no-array-index-key
22-
<React.Fragment key={index}>
21+
<Span
22+
// eslint-disable-next-line react/no-array-index-key
23+
key={index}
24+
sx={theme => ({
25+
display: 'flex',
26+
alignItems: 'center',
27+
gap: theme.space.$2,
28+
})}
29+
>
2330
{child}
2431
{index < items.length - 1 && (
2532
<Icon
@@ -29,7 +36,7 @@ const Root = ({ children }: StepperProps): JSX.Element => {
2936
colorScheme='neutral'
3037
/>
3138
)}
32-
</React.Fragment>
39+
</Span>
3340
))}
3441
</Flex>
3542
);

0 commit comments

Comments
 (0)