-
-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: add support for multiple elements highlight #2069
Conversation
Also this PR can resolve #525 issue |
@rwwagner90 could you review this PR please |
@monshan Could you find a time for this PR? |
index.html
Outdated
@@ -271,7 +271,7 @@ <h3 class="demo-heading font-heading text-2xl uppercase"> | |||
</div> | |||
|
|||
<div class="hero-followup font-heading mb-12 mt-12 lg:mb-24 lg:mt-24"> | |||
<div class="bg-navy inline-block mb-4 w-56 lg:mr-4"> | |||
<div class=" bg-navy inline-block mb-4 w-56 lg:mr-4"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div class=" bg-navy inline-block mb-4 w-56 lg:mr-4"> | |
<div class="bg-navy inline-block mb-4 w-56 lg:mr-4"> |
landing/js/welcome.js
Outdated
@@ -125,6 +125,31 @@ | |||
} | |||
], | |||
id: 'attaching' | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | |
{ |
landing/js/welcome.js
Outdated
text: 'Your tour steps can highlight multiple elements (like this step).', | ||
attachTo: { | ||
element: '.hero-multiple-select', | ||
on: 'bottom', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of weird spacing issues in here. Could you please auto format this with prettier?
}; | ||
if (targetElements) { | ||
const elements = []; | ||
targetElements.forEach(el => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spacing issues here as well
Thanks for the PR @IArny! Lots of formatting issues with the spacing in this code, please run prettier and clean things up and I will take another look. I think in general we would love to support this feature, but I am not sure if this is the best API for it. |
15bf7d4
to
9a8cbc3
Compare
@rwwagner90 thank you for your response. I closed this PR by mistake, but already opened the new one #2083 . I ran prettier and it fixed a little bit more files than were changed by me, hope it's fine. |
I would propose feature to support multiple elements highlight. All elements selected with
attachTo.element
will be highlighted ifattachTo.multiple
istrue
. I addedmultiple
flag toattachTo
field to keep old behavior. I'd appreciate your feedback for this PR.