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

feat(core)!: Implement floating UI for tooltip positioning and styling #108

Merged
merged 7 commits into from
Sep 11, 2023

Conversation

alejo0o
Copy link
Contributor

@alejo0o alejo0o commented Aug 12, 2023

This PR adds Floating UI in order to handle tooltip position which was having issues on IPad screens. This implementation delegates alignment and positioning to floating UI this way the user can configure floating library for each tourstep or provide a global configuration in order to show the tooltip in different positions, provide offsets, add floating middlewares,etc.

@alejo0o alejo0o self-assigned this Aug 12, 2023
@alejo0o alejo0o added bug Something isn't working enhancement New feature or request labels Aug 12, 2023
Copy link
Member

@JoseLion JoseLion left a comment

Choose a reason for hiding this comment

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

Looking good so far! There're some code reformats that are making it hard to review precisely what has changed. I left a few suggestions as well 🙂

README.md Show resolved Hide resolved
package/src/lib/SpotlightTour.context.ts Outdated Show resolved Hide resolved
package/src/lib/SpotlightTour.context.ts Outdated Show resolved Hide resolved
package/src/lib/SpotlightTour.context.ts Outdated Show resolved Hide resolved
package/src/lib/SpotlightTour.provider.tsx Outdated Show resolved Hide resolved
package/src/lib/SpotlightTour.provider.tsx Outdated Show resolved Hide resolved
package/src/lib/SpotlightTour.provider.tsx Show resolved Hide resolved
Copy link
Member

@JoseLion JoseLion left a comment

Choose a reason for hiding this comment

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

This is looking great! I left a few suggestions and comments. Please address them before merging. Thank you @alejo0o 🎉

README.md Outdated Show resolved Hide resolved
package/src/lib/SpotlightTour.context.ts Outdated Show resolved Hide resolved
package/src/lib/SpotlightTour.provider.tsx Show resolved Hide resolved
package/src/lib/SpotlightTour.provider.tsx Outdated Show resolved Hide resolved
package/src/lib/SpotlightTour.provider.tsx Outdated Show resolved Hide resolved
package/src/lib/SpotlightTour.provider.tsx Outdated Show resolved Hide resolved
Copy link
Member

@JoseLion JoseLion left a comment

Choose a reason for hiding this comment

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

Looks good, awesome change! Thanks for your help @alejo0o 🎉

@alejo0o alejo0o merged commit c28219a into main Sep 11, 2023
4 checks passed
JoseLion added a commit that referenced this pull request Sep 11, 2023
JoseLion pushed a commit that referenced this pull request Sep 11, 2023
#108)

BREAKING CHANGE: Refactored how tooltips can be positioned relative to the spot using FloatingUI. This change replaces the `alignTo` and `position` props of the SpotlightTourProvider and TourStep with `floatingProps`. The new prop lets you configure the behavior of FloatingUI for your tooltips
@JoseLion JoseLion linked an issue Sep 18, 2023 that may be closed by this pull request
@JoseLion JoseLion deleted the feat/implement-floating-ui branch September 19, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tutorial Content is not align correctly. [bug]
3 participants