shipshapecode/shepherd

classPrefix breaks target blocking

Open

#1.298 aberto em 15 de jan. de 2021

Ver no GitHub
 (8 comments) (0 reactions) (0 assignees)JavaScript (622 forks)batch import
buggood first issue

Métricas do repositório

Stars
 (11.601 stars)
Métricas de merge de PR
 (Mesclagem média 3m) (1 fundiu PR em 30d)

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
}

Guia do colaborador