Skip to content

Commit 13e59b5

Browse files
committed
Fix: Update dependencies and resolve Sass deprecation warnings.
Updated jest to the latest version. Addressed Sass deprecation warnings for color functions (red, green, blue) by migrating to color.channel(). Resolved data-uri deprecation by using url(data:...) format. Note: Mixed-decls warnings persist but do not break current functionality; a more extensive refactor is needed for full resolution.
1 parent 02fe886 commit 13e59b5

3 files changed

Lines changed: 343 additions & 316 deletions

File tree

CSSSassCollectionMixins.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@
150150
}
151151

152152
@mixin BackgroundIcon ($filename, $filename-big: '', $width: auto, $height: auto) {
153-
background-image: data-uri($filename);
153+
background-image: url(data:image/png;base64,#{$filename});
154154
*background-image: url($filename);
155155
@include BackgroundSize($width $height);
156156

157157
@media #{$high-dpi} {
158-
background-image: data-uri($filename-big);
158+
background-image: url(data:image/png;base64,#{$filename-big});
159159
*background-image: url($filename-big);
160160
@include BackgroundSize($width $height);
161161
}

test/_background.spec.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
@use 'sass:color';
12
@use 'sass-tests' as *;
23

34
@include true-describe('Background') {
45
@include true-it('check BackgroundOpacity output') {
56
@include true-assert {
67
$Color: $background-color;
78
$opacity: $opacity;
8-
$RGBColor: rgb(red($Color), green($Color), blue($Color));
9-
$RGBAColor: rgba(red($Color), green($Color), blue($Color), $opacity);
9+
$RGBColor: rgb(color.channel($Color, 'red'), color.channel($Color, 'green'), color.channel($Color, 'blue'));
10+
$RGBAColor: rgba(color.channel($Color, 'red'), color.channel($Color, 'green'), color.channel($Color, 'blue'), $opacity);
1011
@include true-output {
1112
@include BackgroundOpacity($Color, $opacity);
1213
}

0 commit comments

Comments
 (0)