Skip to content

Commit

Permalink
refactor: use step sizes over theme sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed Jun 12, 2024
1 parent 1a0e945 commit b55740d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/eui/src/components/steps/step.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,23 @@ export const euiStepStyles = (euiThemeContext: UseEuiTheme) => {
// Sizes
m: css`
&:not(:last-of-type) {
background-position: left ${euiTheme.size.xl};
background-position: left ${euiStep.numberSize};
}
`,
s: css`
&:not(:last-of-type) {
background-position: left ${euiTheme.size.xl};
background-position: left ${euiStep.numberSize};
}
`,
xs: css`
&:not(:last-of-type) {
/* Adjust the line to be centered on the smaller number */
background-position: -${euiTheme.size.xs} ${euiTheme.size.l};
background-position: -${euiTheme.size.xs} ${euiStep.numberXSSize};
}
`,
xxs: css`
&:not(:last-of-type) {
background-position: -${euiTheme.size.s} ${euiTheme.size.base};
background-position: -${euiTheme.size.s} ${euiStep.numberXXSSize};
}
`,
};
Expand Down

0 comments on commit b55740d

Please sign in to comment.