Skip to content

Commit 69961ca

Browse files
Copilotmfranzke
andauthored
fix: Sass if() function deprecation warning in Sass 1.95.0+ (#5607)
* Initial plan * Fix SASS deprecation warning for if() function in arr-join Co-authored-by: mfranzke <[email protected]> * Create funny-guests-retire.md * Update funny-guests-retire.md * refactor: optimizing via stylelint * refactor: regenerated package lock file --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: mfranzke <[email protected]> Co-authored-by: Maximilian Franzke <[email protected]>
1 parent ef1ee95 commit 69961ca

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.changeset/funny-guests-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@db-ux/core-components": patch
3+
---
4+
5+
fix: deprecation warning for SASS `if()` function

packages/components/src/styles/internal/_stack-components.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ $stack-gaps: (
2121

2222
@for $i from 1 through list.length($list) {
2323
$e: list.nth($list, $i);
24-
$result: if(
25-
$i != list.length($list),
26-
$result#{$e}#{$glue},
27-
$result#{$e}
28-
);
24+
25+
@if $i != list.length($list) {
26+
$result: $result#{$e}#{$glue};
27+
} @else {
28+
$result: $result#{$e};
29+
}
2930
}
3031

3132
@return $result;

0 commit comments

Comments
 (0)