Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since using a
<TourItem>
block around an element adds a<div>
that couldn't easily be styled to not break my layout, I had to add the option for using an action to add tour items.This pull request adds a "tour" action, so that you can do this:
Instead of:
(Or in addition to, actually -- I didn't remove the TourItem component.)
Also, I added a sequence to the tour parameters so that I can control the sequence of the messages in the tour:
<span use:tour={{message: "A tour item", sequence: 3}}>Blah, blah</span>
This change makes the "data-tour" attribute unneccessary, so I removed it. Items in the store are now saved together with their parameters instead.
Use some of it, all of it or ignore it, no hard feelings any way. :)