Unquote string when removing the hash from a color

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/24910/head
Julius Härtl 5 years ago committed by Morris Jobke
parent 3ec20be575
commit a2f024ae1d
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 3
      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;
}

Loading…
Cancel
Save