Skip to content

Commit 018f23e

Browse files
committed
Unquote string when removing the hash from a color
Signed-off-by: Julius Härtl <[email protected]>
1 parent 19b197a commit 018f23e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/css/functions.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
* @return string The color without #
2828
*/
2929
@function remove-hash-from-color($color) {
30+
$color: unquote($color);
3031
$index: str-index(inspect($color), '#');
3132
@if $index {
32-
$color: str-slice(inspect($color), 0, 1) + str-slice(inspect($color), 3);
33+
$color: str-slice(inspect($color), 2);
3334
}
3435
@return $color;
3536
}

0 commit comments

Comments
 (0)