Skip to content

Commit

Permalink
fix: Stepper alignement (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbitDoge authored Apr 12, 2021
1 parent a9ffcfe commit 25df26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pancake-uikit/src/components/Stepper/Step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const StepNumber = styled.div<StatusProps>`
export const Step: React.FC<StepProps> = ({ index, status, numberOfSteps = 0, children }) => {
const isIndexPair = index % 2 === 0;
return (
<Flex mb={index < numberOfSteps - 1 ? "16px" : 0}>
<Flex justifyContent="center" mb={index < numberOfSteps - 1 ? "16px" : 0}>
<ChildrenLeftWrapper isVisible={!isIndexPair}>{children}</ChildrenLeftWrapper>
<Wrapper>
<StepNumber status={status}>{index + 1}</StepNumber>
Expand Down

0 comments on commit 25df26a

Please sign in to comment.