From 1e856c03844a8987dd4368cd1f106005a6daa91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Sch=C3=A4r?= <59233938+schaertim@users.noreply.github.com> Date: Thu, 19 Dec 2024 08:42:42 +0100 Subject: [PATCH] fix(styles): refactor icons declarations (#3518) --- .changeset/warm-walls-stare.md | 5 +++++ packages/styles/src/variables/components/_close.scss | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .changeset/warm-walls-stare.md 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;