shipshapecode/shepherd

classPrefix breaks target blocking

Open

#1298 aperta il 15 gen 2021

Vedi su GitHub
 (8 commenti) (0 reazioni) (0 assegnatari)JavaScript (622 fork)batch import
buggood first issue

Metriche repository

Star
 (11.601 star)
Metriche merge PR
 (Merge medio 3m) (1 PR mergiata in 30 g)

Descrizione

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
}

Guida contributor