Skip to content
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

Add capability to handle multiple spotlights #730

Closed
wants to merge 3 commits into from

Conversation

pswai
Copy link

@pswai pswai commented Sep 7, 2021

Original PR: #572 (comment)

Due to module federation, I need a proper published version for the fork. So I have to recreate the PR.


This PR add capability to display multiple spotlights during the tour. It allows target to be a selector that selects multiple elements and cast spotlights to all of them.

Notable stuffs:

This does not create multiple tooltip, only one tooltip will be created (existing behaviour)
This does not affect the positioning of tooltip, the tooltip will always be position to the first element (existing behaviour)
This PR does not handle NodeList as target. It handles only the selector-string case.
Related issues: #389

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 7, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2dfe394:

Sandbox Source
React Configuration

@gilbarbara
Copy link
Owner

Duplicated PR

@gilbarbara gilbarbara closed this Dec 19, 2021
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.

None yet

2 participants