Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
New
<Tooltip />
component which in turns is just a wrapper over@tippy.js/react
with design constraints applied on top.Bundle cost
Tippy JS handles already a lot of the edge-cases associated to tooltips for us ( 👀 "Adaptability" section below ) and make sure they stay as accessible as possible.
This comes with an import cost though ☝🏻 ( what do you think @poteirard ? ) but at least we think is safer and more performant than any custom solution we could engineer...
Adaptability
1. Hover
2. Touch
3. Fit on scroll
( 👀 notice how the tooltip vertical alignment changes... )
4. Fit on viewport edge
( 👀 notice how the tooltip horizontal alignment changes... )