Skip to content

Commit

Permalink
fix(styles): stepper step display to break words when too long (#4055)
Browse files Browse the repository at this point in the history
  • Loading branch information
leagrdv committed Dec 19, 2024
1 parent 85297d3 commit 72a4677
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-needles-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Fixed display of stepper to break words when text is too long to fit in one line.
1 change: 1 addition & 0 deletions packages/styles/src/components/stepper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
color: stepper.$stepper-link-color;
width: fit-content;
line-height: stepper.$stepper-link-line-height;
word-break: break-word;

// not adding ellipsis if the like doesn't have a title for accessibility reasons
&:not([title]) {
Expand Down

0 comments on commit 72a4677

Please sign in to comment.