Skip to content

Commit

Permalink
[EuiSteps] Add outer halo to current step (#7048)
Browse files Browse the repository at this point in the history
  • Loading branch information
breehall authored Aug 8, 2023
1 parent e08978e commit a107059
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/steps/step_number.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,16 @@ export const euiStepNumberStyles = (euiThemeContext: UseEuiTheme) => {
${euiTheme.animation.bounce};
}
`,
current: css``,
current: css`
border: 2px solid ${euiTheme.colors.body};
box-shadow: 0 0 0 2px ${euiTheme.colors.primary};
.euiStepNumber__number {
/* Transform the step number so it appears in the center of the step circle */
display: inline-block;
transform: translateY(-2px);
}
`,
};
};

Expand Down
1 change: 1 addition & 0 deletions upcoming_changelogs/7048.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Updated `EuiSteps` and `EuiStepsHorizontal` to highlight and provide a more clear visual indication of the current step

0 comments on commit a107059

Please sign in to comment.