Skip to content

Commit

Permalink
fix: deprecation warning global assignments won't be able to declare …
Browse files Browse the repository at this point in the history
…new variables in future versions
  • Loading branch information
alexanderdavide committed Feb 16, 2022
1 parent 09c09d8 commit 9e5d138
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/scss/modules/_color_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ $themes: (
),
);

$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(
Expand All @@ -35,7 +36,7 @@ $themes: (
) !global;
}
@content;
$theme-map: null !global;
$theme-map: ();
}
}
}
Expand Down

0 comments on commit 9e5d138

Please sign in to comment.