iotaledger / iotaledger/explorer

[Task]: Improve Tooltip component

Open
#1,015 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
57
Forks
20
PR merge metrics
No merged PRs in 30d

Description

### Task description

Improve the generic `Tooltip` component to have the following aspects:

- [ ] Add a custom hook that can give us dynamic cursor coordinates
- [ ] Tooltip position is dynamic based on cursor position
- [ ] Tooltip respects the "window edges", and doesn't go outside the screen or under another element
- [ ] (Optionally) Improve support for overriding "tooltip content" styles

tip: Look into `ChartTooltip` for logic of "following the cursor" or "window edges awareness"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.