diff options
Diffstat (limited to 'core/css/functions.scss')
-rw-r--r-- | core/css/functions.scss | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/css/functions.scss b/core/css/functions.scss index 19792456edd..6cfad2c7ebb 100644 --- a/core/css/functions.scss +++ b/core/css/functions.scss @@ -32,9 +32,10 @@ */ @mixin icon-color($icon, $dir, $color, $core: false) { // remove # from color - $index: str-index($color, '#'); + // inspect cast int to string + $index: str-index(inspect($color), '#'); @if $index { - $color: str-slice($color, 2); + $color: str-slice(inspect($color), 2); } $varName: "--icon-#{$icon}-#{$color}"; @if $core { |