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
}

贡献者指南