shipshapecode/shepherd

classPrefix breaks target blocking

Open

#1,298 建立於 2021年1月15日

在 GitHub 查看
 (8 留言) (0 反應) (0 負責人)JavaScript (622 fork)batch import
buggood first issue

倉庫指標

Star
 (11,601 star)
PR 合併指標
 (平均合併 3分鐘) (30 天內合併 1 個 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
}

貢獻者指南