Skip to content

Commit

Permalink
fix: Fix deprecation warning on setting new global variables
Browse files Browse the repository at this point in the history
Fixes #143
  • Loading branch information
JohnAlbin committed Nov 10, 2023
1 parent b6262b0 commit 6e79f0f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sass/normalize/_normalize-mixin.scss
Expand Up @@ -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;
Expand Down

0 comments on commit 6e79f0f

Please sign in to comment.