Skip to content

Commit

Permalink
fix(styles): stepper numbering (#3513)
Browse files Browse the repository at this point in the history
  • Loading branch information
schaertim authored Sep 11, 2024
1 parent 8ab3db2 commit 055706d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wet-sloths-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Fixed step numbering in stepper component. Moved `counter-increment`to `stepper-link` selector to ensure correct step numbers are displayed throughout progression.
2 changes: 1 addition & 1 deletion packages/styles/src/components/stepper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
counter-increment: step-index;
position: relative;
z-index: 2;
overflow: hidden;
Expand Down Expand Up @@ -120,7 +121,6 @@

// step indicator
.stepper-link::before {
counter-increment: step-index;
content: counter(step-index);
display: flex;
align-items: center;
Expand Down

0 comments on commit 055706d

Please sign in to comment.