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

Make Tooltip position-aware #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lindboe
Copy link
Contributor

@lindboe lindboe commented Sep 14, 2021

Add the horizontalPosition and verticalPosition props to the Tooltip component, so that custom Tooltip components can use that information for things like rendering custom arrows.

(In my particular case, we wanted to render white text directly over the mask, and render a white SVG arrow that points in the correct direction for the highlighted element.)

Part of a series of PRs for more flexible styling:

Add the `horizontalPosition` and `verticalPosition` props to the Tooltip
component, so that custom Tooltip components can use that information
for things like rendering custom arrows.
@naoyamakino
Copy link

+1

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