Skip to content

Commit 03e47f1

Browse files
authored
fix: Deprecation warning (#72)
## Description Updates an if statement to resolve the following deprecation warning: ```DEPRECATION WARNING [if-function]: The Sass if() syntax is deprecated in favor of the modern CSS syntax.```
1 parent d864e8c commit 03e47f1

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

lib/tools/_rem.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ $gel-tools-rem-enable--fallback: true !default;
4141
}
4242

4343
@return if(
44-
meta.type-of($value) == number and math.unit($value) == px,
45-
math.div($value, $baseline) * 1rem,
46-
$value
44+
sass(meta.type-of($value) == number and math.unit($value) == px): math.div($value, $baseline) *
45+
1rem; else: $value
4746
);
4847
}
4948

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gel-sass-tools",
3-
"version": "4.1.1",
3+
"version": "4.1.2",
44
"description": "A collection of Sass Settings & Tools which align to key GEL values",
55
"main": "_sass-tools.scss",
66
"scripts": {

0 commit comments

Comments
 (0)