Skip to content

Commit

Permalink
fix: inner step styling (#8464)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xApotheosis authored Jan 6, 2025
1 parent 636a011 commit 35b73ab
Showing 1 changed file with 27 additions and 25 deletions.
52 changes: 27 additions & 25 deletions src/components/Stepper.theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,36 +37,38 @@ const baseStyle = {
bg: 'border.base',
},
},
innerSteps: {
step: {
'&[data-status=active]': {
bg: 'background.surface.raised.base',
borderRadius: '8px',
},
}

const innerSteps = {
step: {
'&[data-status=active]': {
bg: 'background.surface.raised.base',
borderRadius: '8px',
},
indicator: {
width: '20px',
height: '20px',
minWidth: '20px',
},
indicator: {
width: '20px',
height: '20px',
minWidth: '20px',
borderWidth: '3px',
// Override the throbbing animation
'&[data-status=active]:not(.step-pending)': {
animation: 'none',
},
'&[data-status=active]': {
borderWidth: '3px',
},
'&[data-status=incomplete]': {
borderWidth: '3px',
},
'&[data-status=complete]': {
borderWidth: '3px',
// Override the throbbing animation
'&[data-status=active]:not(.step-pending)': {
animation: 'none',
},
'&[data-status=active]': {
borderWidth: '3px',
},
'&[data-status=incomplete]': {
borderWidth: '3px',
},
'&[data-status=complete]': {
borderWidth: '3px',
},
},
},
}

const variants = {
innerSteps,
error: {
indicator: {
'&[data-status=active]': {
Expand All @@ -83,9 +85,9 @@ const variants = {
},
},
innerStepsError: {
...baseStyle.innerSteps,
...innerSteps,
indicator: {
...baseStyle.innerSteps.indicator,
...innerSteps.indicator,
'&[data-status=active]:not(.step-pending)': {
animation: 'none',
borderWidth: '0',
Expand Down

0 comments on commit 35b73ab

Please sign in to comment.