shipshapecode/shepherd

classPrefix breaks target blocking

Open

#1,298 opened on 2021年1月15日

GitHub で見る
 (8 comments) (0 reactions) (0 assignees)JavaScript (622 forks)batch import
buggood first issue

Repository metrics

Stars
 (11,601 stars)
PR merge metrics
 (平均マージ 3m) (30d で 1 merged PR)

説明

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
}

コントリビューターガイド