Skip to content

Commit

Permalink
fix(styles): refactor icons declarations #3482 (#3517)
Browse files Browse the repository at this point in the history
Changes were already merged into v8.

---------

Co-authored-by: Philipp Gfeller <[email protected]>
  • Loading branch information
schaertim and gfellerph authored Sep 11, 2024
1 parent 20a456e commit 004cc64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-humans-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Resolved issue where validation message icons repeated on each line of multi-line messages. Implemented flexbox layout to ensure a single, vertically centered icon regardless of message length.
4 changes: 3 additions & 1 deletion packages/styles/src/components/form-validation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@

&::before {
content: '';
flex-shrink: 0;
mask-repeat: no-repeat;
align-self: flex-start;
height: form-validation.$form-feedback-font-size * type.$line-height-copy;
width: form-validation.$form-feedback-font-size * type.$line-height-copy;
display: inline-block;
margin-right: spacing.$size-mini;
}
}
Expand Down

0 comments on commit 004cc64

Please sign in to comment.