shipshapecode/shepherd

classPrefix breaks target blocking

Open

#1,298 opened on Jan 15, 2021

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

Repository metrics

Stars
 (11,601 stars)
PR merge metrics
 (Avg merge 3m) (1 merged PR in 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
}

Contributor guide