Skip to content

Commit

Permalink
Remove sass deprecation warnings
Browse files Browse the repository at this point in the history
Global built-in functions are deprecated and will be removed in dart sass 3.0.0.
This commit updates several lines in iconfont files that were causing this deprecation warning.
  • Loading branch information
ethancrawford committed Oct 24, 2024
1 parent 537602d commit 6c691e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .build/iconfont.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Tabler Icons <%= v %> by tabler - https://tabler.io
* License - https://github.com/tabler/tabler-icons/blob/master/LICENSE
*/
@use "sass:string";

$ti-font-family: '<%= fileName %>' !default;
$ti-font-path: 'fonts' !default;
$ti-font-display: null !default;
Expand Down Expand Up @@ -42,7 +44,7 @@ $ti-prefix: 'ti' !default;
-moz-osx-font-smoothing: grayscale;
}
@function unicode($str) {
@return unquote("\"")+unquote(str-insert($str, "\\", 1))+unquote("\"")
@return string.unquote("\"")+string.unquote(string.insert($str, "\\", 1))+string.unquote("\"")
}

<% glyphs.forEach(function(glyph) { %>
Expand Down
4 changes: 3 additions & 1 deletion packages/icons-webfont/.build/iconfont.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Tabler Icons <%= v %> by tabler - https://tabler.io
* License - https://github.com/tabler/tabler-icons/blob/master/LICENSE
*/
@use "sass:string";

$ti-font-family: '<%= fileName %>' !default;
$ti-font-path: './fonts' !default;
$ti-font-display: null !default;
Expand Down Expand Up @@ -33,7 +35,7 @@ $ti-prefix: 'ti' !default;
}

@function unicode($str) {
@return unquote("\"")+unquote(str-insert($str, "\\", 1))+unquote("\"")
@return string.unquote("\"")+string.unquote(string.insert($str, "\\", 1))+string.unquote("\"")
}

<% glyphs.forEach(function(glyph) { %>
Expand Down

0 comments on commit 6c691e8

Please sign in to comment.