From a2f024ae1db3dd7176ed6af78c73ee854e8bddba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= <jus@bitgrid.net> Date: Mon, 11 Jan 2021 10:09:51 +0100 Subject: [PATCH] Unquote string when removing the hash from a color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl <jus@bitgrid.net> --- core/css/functions.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- GitLab