compilation de str-index()
Ça concerne la lib scssphp, mais je le mets là pour le moment:
Il y a un bug sur str-index
qui retourne une erreur "$string (color) is not a string" en passant une couleur (au moins rgba) dessus…
Exemple :
$color: #ffcc33;
$test: str-index($color, '#'); // OK
$test: str-index(#{$color}, '#'); // OK
$color: rgba(255, 0, 0, 40);
$test: str-index($color, '#'); // NOK : erreur
$test: str-index(#{$color}, '#'); // NOK : erreur
// SCSS : Echec compilation fichier xxx.scss
// Error: $string: red is not a string.: