Projet

Général

Profil

Development #40285

sassc 3.6.1 vs wcs-step-marker-type

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

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

Révision 42602a86 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

scss: convert $wcs-step-marker-type to string before str-index() (#40285)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

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.

#2

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.

#4

Mis à jour par Thomas Jund il y a environ 4 ans

  • Statut changé de Solution proposée à Solution validée
#5

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)
#6

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

Formats disponibles : Atom PDF