Skip to content

Commit 3173ff3

Browse files
committed
Use "sass:string" for unquote function
Calling global `unquote` is deprecated. This uses "sass:string" instead.
1 parent f5c7d29 commit 3173ff3

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

scss/util/_breakpoint.scss

+10-8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
/// @group breakpoints
77
////
88

9+
@use "sass:string"
10+
911
/// Patch to fix issue #12080
1012
$-zf-size: null;
1113

@@ -404,35 +406,35 @@ $small-only: '';
404406

405407
@if map-has-key($breakpoints, small) {
406408
$small-up: screen;
407-
$small-only: unquote('screen and #{breakpoint(small only)}');
409+
$small-only: string.unquote('screen and #{breakpoint(small only)}');
408410
}
409411

410412
$medium-up: '';
411413
$medium-only: '';
412414

413415
@if map-has-key($breakpoints, medium) {
414-
$medium-up: unquote('screen and #{breakpoint(medium)}');
415-
$medium-only: unquote('screen and #{breakpoint(medium only)}');
416+
$medium-up: string.unquote('screen and #{breakpoint(medium)}');
417+
$medium-only: string.unquote('screen and #{breakpoint(medium only)}');
416418
}
417419

418420
$large-up: '';
419421
$large-only: '';
420422

421423
@if map-has-key($breakpoints, large) {
422-
$large-up: unquote('screen and #{breakpoint(large)}');
423-
$large-only: unquote('screen and #{breakpoint(large only)}');
424+
$large-up: string.unquote('screen and #{breakpoint(large)}');
425+
$large-only: string.unquote('screen and #{breakpoint(large only)}');
424426
}
425427

426428
$xlarge-up: '';
427429
$xlarge-only: '';
428430

429431
@if map-has-key($breakpoints, xlarge) {
430-
$xlarge-up: unquote('screen and #{breakpoint(xlarge)}');
431-
$xlarge-only: unquote('screen and #{breakpoint(xlarge only)}');
432+
$xlarge-up: string.unquote('screen and #{breakpoint(xlarge)}');
433+
$xlarge-only: string.unquote('screen and #{breakpoint(xlarge only)}');
432434
}
433435

434436
$xxlarge-up: '';
435437

436438
@if map-has-key($breakpoints, xxlarge) {
437-
$xxlarge-up: unquote('screen and #{breakpoint(xxlarge)}');
439+
$xxlarge-up: string.unquote('screen and #{breakpoint(xxlarge)}');
438440
}

scss/util/_selector.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
/// @group functions
77
////
88

9+
@use "sass:string"
10+
911
/// Generates a selector with every text input type. You can also filter the list to only output a subset of those selectors.
1012
///
1113
/// @param {List|Keyword} $types [()] - A list of text input types to use. Leave blank to use all of them.
@@ -20,7 +22,7 @@
2022
}
2123

2224
@each $type in $types {
23-
$return: append($return, unquote('[type=\'#{$type}\']#{$modifier}'), comma);
25+
$return: append($return, string.unquote('[type=\'#{$type}\']#{$modifier}'), comma);
2426
}
2527

2628
@return $return;

scss/xy-grid/_gutters.scss

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
/// @group xy-grid
77
////
88

9+
@use "sass:string"
10+
911
/// Create gutters for a cell/container.
1012
///
1113
/// @param {Number|Map} $gutters [$grid-margin-gutters] - Map or single value for gutters.
@@ -30,7 +32,7 @@
3032

3133
// Loop through each gutter position
3234
@each $value in $gutter-position {
33-
#{$gutter-type}-#{$value}: unquote("#{$operator}#{$gutter}");
35+
#{$gutter-type}-#{$value}: string.unquote("#{$operator}#{$gutter}");
3436
}
3537
}
3638
}
@@ -39,7 +41,7 @@
3941

4042
// Loop through each gutter position
4143
@each $value in $gutter-position {
42-
#{$gutter-type}-#{$value}: unquote("#{$operator}#{$gutter}");
44+
#{$gutter-type}-#{$value}: string.unquote("#{$operator}#{$gutter}");
4345
}
4446
}
4547
}

0 commit comments

Comments
 (0)