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

Create BaseTooltip component in @jbrowse/core/ui #4548

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Sep 5, 2024

Currently the logic for making tooltips at arbitrary coordinates is copied/pasted in various places. this PR makes a central tooltip component called @jbrowse/core/ui/BaseTooltip, so there is less duplication.

This PR also creates a workaround to an issue where that tooltip would flash at the upper left of screen.

Note that we use this custom tooltip component instead of a @mui/material/Tooltip because the MUI tooltip really wants to wrap an actual element on the page, even the virtual element example wraps an element that is on the page https://mui.com/material-ui/react-tooltip/)

@cmdcolin cmdcolin force-pushed the tooltip_0coord_workaround branch 4 times, most recently from bcb2bde to 648d4f9 Compare September 5, 2024 17:15
Use BaseTooltip

Shorten build names
@cmdcolin cmdcolin force-pushed the tooltip_0coord_workaround branch from 648d4f9 to f19ad87 Compare September 5, 2024 17:45
@cmdcolin cmdcolin merged commit 6534d55 into main Sep 5, 2024
9 checks passed
@cmdcolin cmdcolin deleted the tooltip_0coord_workaround branch September 5, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant