Skip to content

Commit

Permalink
fix(styles): refactor icons declarations (#3518)
Browse files Browse the repository at this point in the history
  • Loading branch information
schaertim authored Dec 19, 2024
1 parent 004dbd4 commit 1e856c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-walls-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Refactored icon declarations to comply with Angular 18's new build system requirements.
6 changes: 4 additions & 2 deletions packages/styles/src/variables/components/_close.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ $btn-close-width: spacing.$size-large !default;
$btn-close-height: $btn-close-width !default;
$btn-close-padding-x: spacing.$size-regular !default;
$btn-close-color: color.$black !default;
$btn-close-bg: url('#{icons.get-colored-svg-url('2043', $btn-close-color)}') !default;
$btn-close-hcm-bg: url('#{icons.get-colored-svg-url('2043', color.$white)}') !default;
$_btn-close-bg: icons.get-colored-svg-url(2043, $btn-close-color);
$_btn-close-hcm-bg: icons.get-colored-svg-url(2043, color.$white);
$btn-close-bg: url('#{$_btn-close-bg}') !default;
$btn-close-hcm-bg: url('#{$_btn-close-hcm-bg}') !default;
$btn-close-opacity: 0.5 !default;
$btn-close-hover-opacity: 0.75 !default;

0 comments on commit 1e856c0

Please sign in to comment.