From 9e5d138e97cd119226049c02cc31d4ea903eb711 Mon Sep 17 00:00:00 2001
From: alexanderdavide <alexeble1998@gmail.com>
Date: Wed, 16 Feb 2022 21:00:20 +0000
Subject: [PATCH] fix: deprecation warning global assignments won't be able to declare new variables in future versions

---
 assets/scss/modules/_color_theme.scss |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/assets/scss/modules/_color_theme.scss b/assets/scss/modules/_color_theme.scss
index 7bb025d..5485862 100644
--- a/assets/scss/modules/_color_theme.scss
+++ b/assets/scss/modules/_color_theme.scss
@@ -21,10 +21,11 @@
   ),
 );
 
+$theme-map: ();
+
 @mixin themed() {
   @each $theme, $map in $themes {
     .theme--#{$theme} & {
-      $theme-map: () !global;
       @each $key, $submap in $map {
         $value: map-get(map-get($themes, $theme), '#{$key}');
         $theme-map: map-merge(
@@ -35,7 +36,7 @@
         ) !global;
       }
       @content;
-      $theme-map: null !global;
+      $theme-map: ();
     }
   }
 }

--
Gitblit v1.10.0