Skip to content

Commit

Permalink
Change data-id to data-shepherd-step-id on Step content elements.
Browse files Browse the repository at this point in the history
clashResiliance++;
  • Loading branch information
BrianSipple committed Oct 21, 2018
1 parent 49bb207 commit 46134ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/step.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class Step extends Evented {
_createTooltipContent() {
const content = document.createElement('div');
const classes = this.options.classes || '';
const element = createFromHTML(`<div class='${classes}' data-id='${this.id}' id="step-${this.options.id}-${uniqueId()}"}>`);
const element = createFromHTML(`<div class='${classes}' data-shepherd-step-id='${this.id}' id="step-${this.options.id}-${uniqueId()}"}>`);
const header = document.createElement('header');

if (this.options.title) {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test.step.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('Tour | Step', () => {
it('shows step evoking method, regardless of order', () => {
showTestStep.show();

assert.equal(document.querySelector('[data-id=test2]').dataset.id, 'test2');
assert.equal(document.querySelector('[data-shepherd-step-id=test2]').dataset.id, 'test2');
});
});
});
Expand Down

0 comments on commit 46134ec

Please sign in to comment.