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

Mutliple tooltip enhancements #151

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

apfritts
Copy link

@apfritts apfritts commented Apr 21, 2022

Hi @jasongaare!

Thank you for this wonderful little tooltip library! We're going to use it in our app and needed a few tweaks to make it work the way we needed. I tried to keep the behavior of the tooltip the same and added some additional properties to control the new functionality.

  • Switch to fire onClose when the background is tapped
  • Switch to allow background interactions
  • Switch to prevent users from closing the tooltip but not actually interacting with the child content
  • Reduce the number of times we measure the UI elements when placement !== 'top'

Please let me know if you'd like any changes or think something shouldn't be part of this library. 💃🏻

* Switch to fire onClose when when the background is tapped
* Switch to allow background interactions
* Switch to prevent users from closing the tooltip but not actually interacting with the child content
Reduce number of times we measure the UI elements
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.

1 participant