Skip to content

Commit

Permalink
remove all mentions of data-shepherd-active-tour (#2022)
Browse files Browse the repository at this point in the history
* remove all mentions of data-shepherd-active-tour

* Update docs-src/tutorials/02-usage.md

* Update src/js/tour.js

* Update src/types/tour.d.ts

Co-authored-by: Robert Wagner <[email protected]>
  • Loading branch information
Steezli and RobbieTheWagner authored Aug 18, 2022
1 parent df085f7 commit de84951
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs-src/tutorials/02-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const myTour = new Shepherd.Tour(options);
- `modalContainer` An optional container element for the modal. If not set, the modal will be appended to `document.body`.
- `steps`: An array of step options objects or Step instances to initialize the tour with.
- `tourName`: An optional "name" for the tour. This will be appended to the the tour's
dynamically generated `id` property -- which is also set on the `body` element as the `data-shepherd-active-tour` attribute whenever the tour becomes active.
dynamically generated `id` property.
- `useModalOverlay`: Whether or not steps should be placed above a darkened modal overlay. If true, the overlay will create an opening around the target element so that it can remain interactive.

##### Tour Methods
Expand Down
3 changes: 1 addition & 2 deletions src/js/tour.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export class Tour extends Evented {
* If not set, the modal will be appended to `document.body`.
* @param {object[] | Step[]} options.steps An array of step options objects or Step instances to initialize the tour with
* @param {string} options.tourName An optional "name" for the tour. This will be appended to the the tour's
* dynamically generated `id` property -- which is also set on the `body` element as the `data-shepherd-active-tour` attribute
* whenever the tour becomes active.
* dynamically generated `id` property.
* @param {boolean} options.useModalOverlay Whether or not steps should be placed above a darkened
* modal overlay. If true, the overlay will create an opening around the target element so that it
* can remain interactive
Expand Down
3 changes: 1 addition & 2 deletions src/types/tour.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ declare namespace Tour {

/**
* An optional "name" for the tour. This will be appended to the the tour's
* dynamically generated `id` property -- which is also set on the `body` element as the `data-shepherd-active-tour` attribute
* whenever the tour becomes active.
* dynamically generated `id` property.
*/
tourName?: string;

Expand Down

0 comments on commit de84951

Please sign in to comment.