From 6e79f0fedeb0857ff26cf125b52c06c6d55a65c6 Mon Sep 17 00:00:00 2001 From: JohnAlbin Date: Fri, 10 Nov 2023 22:42:52 +0800 Subject: [PATCH] fix: Fix deprecation warning on setting new global variables Fixes #143 --- sass/normalize/_normalize-mixin.scss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sass/normalize/_normalize-mixin.scss b/sass/normalize/_normalize-mixin.scss index eebfdf0c4..74ba4ba69 100644 --- a/sass/normalize/_normalize-mixin.scss +++ b/sass/normalize/_normalize-mixin.scss @@ -2,12 +2,11 @@ // Helper function for the normalize() mixin. +// Initialize the global variables needed by _normalize-include. +$_normalize-include: () !default; +$_normalize-exclude: () !default; + @function _normalize-include($section, $exclude: null) { - // Initialize the global variables needed by this function. - @if not global_variable_exists(_normalize-include) { - $_normalize-include: () !global; - $_normalize-exclude: () !global; - } // Since we are given 2 parameters, set the global variables. @if $exclude != null { $include: $section;