shipshapecode/shepherd

classPrefix breaks target blocking

Open

#1.298 geöffnet am 15. Jan. 2021

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (622 Forks)batch import
buggood first issue

Repository-Metriken

Stars
 (11.601 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3m) (1 gemergte PR in 30 T)

Beschreibung

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
}

Contributor Guide