Skip to content

Commit

Permalink
fix(stepper): step number cursor
Browse files Browse the repository at this point in the history
Fixes: #273
  • Loading branch information
HitomiWin authored and danielkaxis committed Aug 24, 2023
1 parent ef8c0be commit da78987
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
9 changes: 5 additions & 4 deletions packages/core/src/Stepper/Step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const StepDivider = styled.span<{
: css`
background-color: ${() => theme.color.element14()};
`}
left: -2px;
left: -10px;
`

const StepHeader = styled.div`
Expand All @@ -128,18 +128,18 @@ const StepLabelWrapper = styled.div<{
display: flex;
min-height: 24px;
padding-left: 18px;
padding-left: 10px;
`

const StepContentContainer = styled.div`
padding: ${spacing.medium} 0 ${spacing.huge} 20px;
padding: ${spacing.medium} 0 ${spacing.huge} 12px;
`

export const StepControls = styled.div`
display: inline-grid;
grid-template-columns: auto auto;
grid-gap: ${spacing.medium};
padding: ${spacing.small} 0 20px 20px;
padding: ${spacing.small} 0 20px 12px;
`

const StepContentWrapper = styled.div<{
Expand All @@ -148,6 +148,7 @@ const StepContentWrapper = styled.div<{
position: relative;
min-height: 32px;
margin-bottom: -8px;
margin-left: ${spacing.medium};
`

interface StepProps extends Omit<StepContent, 'content'> {
Expand Down
31 changes: 17 additions & 14 deletions packages/core/src/Stepper/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ exports[`Stepper Stepper 1`] = `
width: 1px;
position: absolute;
background-color: rgb(103,58,183);
left: -2px;
left: -10px;
}
.c18 {
Expand All @@ -204,7 +204,7 @@ exports[`Stepper Stepper 1`] = `
width: 1px;
position: absolute;
background-color: rgb(163,163,163);
left: -2px;
left: -10px;
}
.c5 {
Expand All @@ -223,7 +223,7 @@ exports[`Stepper Stepper 1`] = `
display: -ms-flexbox;
display: flex;
min-height: 24px;
padding-left: 18px;
padding-left: 10px;
}
.c19 {
Expand All @@ -237,24 +237,25 @@ exports[`Stepper Stepper 1`] = `
display: -ms-flexbox;
display: flex;
min-height: 24px;
padding-left: 18px;
padding-left: 10px;
}
.c11 {
padding: 8px 0 32px 20px;
padding: 8px 0 32px 12px;
}
.c12 {
display: inline-grid;
grid-template-columns: auto auto;
grid-gap: 8px;
padding: 4px 0 20px 20px;
padding: 4px 0 20px 12px;
}
.c8 {
position: relative;
min-height: 32px;
margin-bottom: -8px;
margin-left: 8px;
}
.c3 {
Expand Down Expand Up @@ -616,7 +617,7 @@ exports[`Stepper Stepper 2`] = `
width: 1px;
position: absolute;
background-color: rgb(103,58,183);
left: -2px;
left: -10px;
}
.c5 {
Expand All @@ -635,7 +636,7 @@ exports[`Stepper Stepper 2`] = `
display: -ms-flexbox;
display: flex;
min-height: 24px;
padding-left: 18px;
padding-left: 10px;
}
.c18 {
Expand All @@ -649,24 +650,25 @@ exports[`Stepper Stepper 2`] = `
display: -ms-flexbox;
display: flex;
min-height: 24px;
padding-left: 18px;
padding-left: 10px;
}
.c11 {
padding: 8px 0 32px 20px;
padding: 8px 0 32px 12px;
}
.c12 {
display: inline-grid;
grid-template-columns: auto auto;
grid-gap: 8px;
padding: 4px 0 20px 20px;
padding: 4px 0 20px 12px;
}
.c8 {
position: relative;
min-height: 32px;
margin-bottom: -8px;
margin-left: 8px;
}
.c3 {
Expand Down Expand Up @@ -976,24 +978,25 @@ exports[`Stepper Stepper 3`] = `
display: -ms-flexbox;
display: flex;
min-height: 24px;
padding-left: 18px;
padding-left: 10px;
}
.c10 {
padding: 8px 0 32px 20px;
padding: 8px 0 32px 12px;
}
.c11 {
display: inline-grid;
grid-template-columns: auto auto;
grid-gap: 8px;
padding: 4px 0 20px 20px;
padding: 4px 0 20px 12px;
}
.c8 {
position: relative;
min-height: 32px;
margin-bottom: -8px;
margin-left: 8px;
}
.c3 {
Expand Down

0 comments on commit da78987

Please sign in to comment.