diff --git a/.changeset/warm-walls-stare.md b/.changeset/warm-walls-stare.md new file mode 100644 index 0000000000..8ec7a47d0a --- /dev/null +++ b/.changeset/warm-walls-stare.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': patch +--- + +Refactored icon declarations to comply with Angular 18's new build system requirements. diff --git a/packages/styles/src/variables/components/_close.scss b/packages/styles/src/variables/components/_close.scss index c4e6a3d419..739415c0d9 100644 --- a/packages/styles/src/variables/components/_close.scss +++ b/packages/styles/src/variables/components/_close.scss @@ -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;