Skip to content

How to add data attributes on cancel Icon? #2036

@didaquis

Description

@didaquis

Hello.

I would like to know if there is a way to add a data attribute on the cancel tour icon.

In the documentation, it indicates that these are the only possible options:

Captura de pantalla 2022-08-24 a las 8 54 01

Using this options...

cancelIcon: {
        enabled: true,
        label: 'foo'
 }

... you will get this:

<button aria-label="foo" class="shepherd-cancel-icon" type="button">
       <span aria-hidden="true">×</span>
</button>

But I would like to get something like this:

<button aria-label="foo" class="shepherd-cancel-icon" type="button" data-whatever="some-value">
       <span aria-hidden="true">×</span>
</button>

Is there any way to add this data-whatever="some-value" ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions