shipshapecode/shepherd

classPrefix breaks target blocking

Open

#1 298 ouverte le 15 janv. 2021

Voir sur GitHub
 (8 commentaires) (0 réactions) (0 assignés)JavaScript (622 forks)batch import
buggood first issue

Métriques du dépôt

Stars
 (11 601 stars)
Métriques de merge PR
 (Merge moyen 3m) (1 PR mergée en 30 j)

Description

If you specify a classPrefix in the tour options, any highlighted elements in steps where canClickTarget = true are still clickable because the following css selector breaks:

.shepherd-target-click-disabled.shepherd-enabled.shepherd-target,.shepherd-target-click-disabled.shepherd-enabled.shepherd-target *{
    pointer-events:none
}

The following custom css rule has to be added, taking into account the classPrefix:

.shepherd-target-click-disabled.walkthrough-shepherd-enabled.shepherd-target,.shepherd-target-click-disabled.walkthrough-shepherd-enabled.shepherd-target *{
    pointer-events:none
}

Guide contributeur