Skip to content

Commit

Permalink
Prevent using global built-in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallku committed Oct 24, 2024
1 parent 2b75829 commit 824592b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ui/src/styles/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@use "sass:meta";
@use "sass:map";
@use "sass:string";

$breakpoints: (
"small": (
Expand All @@ -20,7 +21,7 @@ $breakpoints: (
$raw-query: map.get($breakpoints, $breakpoint);

@if $raw-query {
$query: if(meta.type-of($raw-query) == "string", unquote($raw-query), inspect($raw-query));
$query: if(meta.type-of($raw-query) == "string", string.unquote($raw-query), meta.inspect($raw-query));

@media screen and (#{$query}) {
@content;
Expand Down

0 comments on commit 824592b

Please sign in to comment.