Development #40285
sassc 3.6.1 vs wcs-step-marker-type
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
01 mars 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Error: argument `$string` of `quote($string)` must be a string on line 398:16 of ../includes/wcs/_steps.scss, in function `quote` from line 398:16 of ../includes/wcs/_steps.scss from line 3:9 of ../includes/_wcs.scss from line 11:9 of ../includes/_publik.scss from line 7:9 of style.scss >> @if (str-index(quote($wcs-step-marker-type), 'disc')) { ---------------^
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-scss-use-strings-for-wcs-step-marker-type-40285.patch 0001-scss-use-strings-for-wcs-step-marker-type-40285.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
De https://sass-lang.com/documentation/values/lists#find-an-element-in-a-list il y aurait également possibilité de quelque chose plus propre en considérant les différentes valeurs comme une liste, if list.index($wcs-step-marker-type, 'disc') {
mais pas réussi.
Mis à jour par Thomas Jund il y a environ 4 ans
alors là je ne comprends pas.
D'après la doc de Sass, `quote()` a justement le rôle de retourner son argument en string https://sass-lang.com/documentation/modules/string#quote (bon ok la doc parle de `quoted string`).
Si il faut lui passer un string elle ne sert plus à rien.
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-scss-convert-wcs-step-marker-type-to-string-before-s.patch 0001-scss-convert-wcs-step-marker-type-to-string-before-s.patch ajouté
Alternative, pour convertir $wcs-step-marker-type en chaine.
Mis à jour par Thomas Jund il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 42602a86694920ded1b19051153f8f145bff810b Author: Frédéric Péters <fpeters@entrouvert.com> Date: Mon Mar 2 09:56:32 2020 +0100 scss: convert $wcs-step-marker-type to string before str-index() (#40285)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
scss: convert $wcs-step-marker-type to string before str-index() (#40285)