feat: migrate hot-path tooltips from native title= to <Hint>#120
Merged
Conversation
5 most-visible tooltip surfaces now use the Hint primitive instead of the browser's default 800 ms title= popup: - home-bench-table — provider initials chips on every home card - benchmark-card — provider initials chips on the /benchmarks grid - distribution-chart — p50 / p90 / p99 percentile markers - ranked-bar-chart — provider name / tag row chip - ledger-table — 'Currently unavailable' badge (had a 2-sentence paragraph stuffed inside a title= attribute, illegible) Hint already shipped in the previous PR; this batch attaches it where the design audit identified the worst UX gaps (provider chips were the agent's #1 example: user sees a 'C' and has to wait 800 ms for the browser to maybe show 'Coinbase'). 120 ms hover delay, instant on focus, ink-on-paper styled - matches Stripe / Linear / Vercel conventions for read-only dashboards. Row-level tooltips (full <li> with methodologyTooltip) keep their native title= for now - wrapping <li> in <Hint>'s <span> would break <ul> semantics. Migrating those needs a small Hint asChild pattern (radix-style cloneElement); deferred to a focused follow-up PR if visible enough to warrant it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
5 surfaces de tooltip les plus visibles migrées vers
<Hint>:Les title= sur
<li>rows restent (wrapper Hint casserait<ul>semantics). À migrer dans une PR follow-up avec un pattern asChild si besoin.