Skip to content

Commit

Permalink
fix(styles): HCM banner icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
leagrdv committed Dec 16, 2024
1 parent d7e1172 commit d3f6af9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/quiet-dolls-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Fixed icon color of banner in high contrast mode.
4 changes: 4 additions & 0 deletions packages/styles/src/mixins/_notification.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ tokens.$default-map: components.$post-banner;
&:not(.no-icon)::before {
@include icons-mx.icon($icon);
color: $icon-color;

@include utilities-mx.high-contrast-mode {
color: FieldText;
}
}

// Prevent flashing when using post-icon
Expand Down

0 comments on commit d3f6af9

Please sign in to comment.