aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/css/functions.scss3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/css/functions.scss b/core/css/functions.scss
index 7616441bc1d..7489e574e97 100644
--- a/core/css/functions.scss
+++ b/core/css/functions.scss
@@ -27,9 +27,10 @@
* @return string The color without #
*/
@function remove-hash-from-color($color) {
+ $color: unquote($color);
$index: str-index(inspect($color), '#');
@if $index {
- $color: str-slice(inspect($color), 0, 1) + str-slice(inspect($color), 3);
+ $color: str-slice(inspect($color), 2);
}
@return $color;
}