Skip to content

feature: add support for multiple elements highlight#2069

Closed
IArny wants to merge 0 commit into
shipshapecode:masterfrom
IArny:master
Closed

feature: add support for multiple elements highlight#2069
IArny wants to merge 0 commit into
shipshapecode:masterfrom
IArny:master

Conversation

@IArny

@IArny IArny commented Sep 16, 2022

Copy link
Copy Markdown

I would propose feature to support multiple elements highlight. All elements selected with attachTo.element will be highlighted if attachTo.multiple is true. I added multiple flag to attachTo field to keep old behavior. I'd appreciate your feedback for this PR.

@IArny

IArny commented Sep 16, 2022

Copy link
Copy Markdown
Author

Also this PR can resolve #525 issue

@IArny

IArny commented Sep 19, 2022

Copy link
Copy Markdown
Author

@rwwagner90 could you review this PR please

@IArny

IArny commented Sep 22, 2022

Copy link
Copy Markdown
Author

@monshan Could you find a time for this PR?

Comment thread index.html Outdated

<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">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<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">

Comment thread landing/js/welcome.js Outdated
],
id: 'attaching'
},
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{
{

Comment thread landing/js/welcome.js Outdated
text: 'Your tour steps can highlight multiple elements (like this step).',
attachTo: {
element: '.hero-multiple-select',
on: 'bottom',

Copy link
Copy Markdown
Member

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?

Comment thread src/js/components/shepherd-modal.svelte Outdated
};
if (targetElements) {
const elements = [];
targetElements.forEach(el => {

Copy link
Copy Markdown
Member

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

@RobbieTheWagner

Copy link
Copy Markdown
Member

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.

@IArny
IArny force-pushed the master branch 2 times, most recently from 15bf7d4 to 9a8cbc3 Compare September 29, 2022 11:33
@IArny IArny closed this Sep 29, 2022
@IArny

IArny commented Sep 30, 2022

Copy link
Copy Markdown
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants