Conversation
… a fraction of a pixel opens its tooltip Every native title= in the Inbox window becomes ui's Tooltip through one wrapper, Tip (packages/inbox/components/Tip.tsx): 150 ms to open and the next at once within 400 ms (one TooltipProvider in InboxApp). Cut text opens it only while cut; where the title said something the screen does not (a sidebar project's folder, a named search chip's subject, a full date) it always opens. A disabled control hangs it on a wrapper the pointer reaches. A trigger inside a native <dialog> portals into it. Escape closes a tooltip and still reaches the window. clipTitle.ts is gone. The owner's "reconciliation-r…" chip with no tooltip had two causes: isTextCut now compares the text's Range width with the box (a 0.06 px ellipsis counts), and the subject's flex-shrink goes from 1000 to 1000000 so a chip never loses a fraction of a pixel while the subject shrinks. ui Tooltip gains two additive props, container and escapePassesThrough (HANDOFF.md); unset, it is unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
…scription)
- .ib-tipwrap is flex: none, so Mark read never shrinks and spills over
Archive in a tight header (e2e from 320 to 1440 px).
- ui gains HostTitle and configurePlannotatorUI({ componentTooltips })
(default false: native titles, every other host unchanged). The Inbox
opts in, so a message link to an attachment, a question card's decision
tag, and the annotation panel's and toolbar's buttons and labels show
ui's Tooltip; a title that was a button's only name becomes its
aria-label. isTextCut moves to ui (utils/textCut.ts).
- Sidebar project rows keep their folder as an accessible description
(aria-describedby on visually hidden text).
- HANDOFF.md describes isTextCut and the new seam.
- The search e2e hovers a cut right-to-left line and reads its tooltip.
Co-Authored-By: Claude <noreply@anthropic.com>
- HostTitle on: a title that is not the control's name stays its description (a hidden element named by aria-describedby), so a screen reader still hears "Not attached to this message", "Open <path> beside the thread", the Unanchored explanation and the "Show annotated files" hints. Off: the exact native title, an empty title included. - Tests with componentTooltips off: every wrapper keeps its title and adds no aria-label or description (HostTitle.dom.test.tsx, links.test.tsx). - isTextCut takes a part selector instead of knowing the Inbox's class. - The sidebar folder description is `hidden` (not read twice). - ui's Tooltip draws at z-[110], above the annotation toolbar. Co-Authored-By: Claude <noreply@anthropic.com>
Resolved: - inbox.css: .ib-lhead h1 keeps main's type-knob font size; .ib-path keeps this branch's flex shrink of 1000000. The tail keeps both Soft's blocks and the tooltip rules. - playwright.config.ts: one testMatch with inbox-soft-polish.spec.ts and inbox-tooltips.spec.ts. Tooltips now portal into the window's root (data-pn-tooltip-root; ui's tooltipContainerOf, which HostTitle uses too) so the Soft switches reach them: with --ib-soft-float on, a tooltip ([data-pn-tooltip]) floats like the menus and the toast (Soft's shadow, no outline); off, ui's border and shadow. Co-Authored-By: Claude <noreply@anthropic.com>
1 task
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.
The owner asked for this on 2026-10-17: "I want an actual component tooltip. I don't want the web native, like, have to wait however many seconds for some, like, built-in thing to show up." He was hovering cut names in the list (project labels such as "northwind-industri…", sidebar projects) and got either the slow native title or nothing.
What changed
title=in the Inbox window is now ui'sTooltip, through one wrapper,Tip(packages/inbox/components/Tip.tsx). It opens after 150 ms, and the next one opens at once within 400 ms (oneTooltipProviderinInboxApp).aria-label.<dialog>(search, compose, the agent-note and update dialogs) portals the tooltip into that dialog, so the dialog's top layer does not cover it. Panes never clip a tooltip..ib-tipwrapspan, because a disabled button gets no pointer events.inbox-mobile's Escape test caught it.(hover: none). No element became a tab stop.clipTitle.tsis deleted.The chip with no tooltip ("reconciliation-r…")
This had two causes, and both are fixed:
isTextCutnow also compares the text's Range width with the box's content width, to a hundredth of a pixel. It also counts any whole pixel ofscrollWidthoverclientWidth. Before, the check wasscrollWidth > clientWidth + 1, which missed a 0.06 px ellipsis.flex-shrinkgoes from 1000 to 1000000. Flex shares a shortfall by factor times width, so with 1000 a chip lost a fraction of a pixel every time the subject shrank. The new e2e reproduces that with the old value: a 0.047 px overflow at a 520 px list. The list header's folder and compose's folder had the same pattern and got the same fix.ui (additive)
ui's
Tooltipgains two optional props:container(where the tooltip portals) andescapePassesThrough. Both are documented inHANDOFF.md. With neither prop set, the tooltip behaves exactly as before.ui's own hover text (review follow-up)
ui gains
HostTitleandconfigurePlannotatorUI({ componentTooltips }). The default is false, so plan review, annotate, code review and every other host keep their native titles. The Inbox turns it on, so these now show ui's Tooltip in the Inbox:aria-label.isTextCutmoved to ui (utils/textCut.ts). A sidebar project keeps its folder as an accessible description (aria-describedby)..ib-tipwrapis nowflex: none, so Mark read can no longer spill over Archive.Left native
title: it is the frame's accessible name, not a tooltip.HostTitlethat the Inbox can show: CommentPopover, AnnotationToolstrip, the ImageAnnotator toolbar, CodeBlock's copy button, TableToolbar and TablePopout, DiagramBlock and the diagram viewer, CodeFilePopout, QuestionsPanelSection, and HtmlViewer's own controls.Tests
packages/inbox/componentTooltips.test.tsx(added to thetest.ymlDOM list): a cut row label, the sidebar project with and without the project menu, the 0.06 px chip, and no native title anywhere.tests/e2e/inbox-tooltips.spec.ts, against the compiled binary at 1440 px, device scale 2, with a thread open:titlenow assert the tooltip: ack, agentNoteDialog, fullView, searchPalette, threadFolding, fileBack, openIn, plus the worst-case, search, phones and thread-folding e2e specs.bun run typecheck: passes. The 54 Inbox DOM tests: 454 pass. Headless e2e passed: inbox, sidebar, worst-case, search, thread-folding, attachments, full-view, project-menu, compose, decisions, phones, thread-header, mobile, list-resize, open-stays-put and tooltips.Screenshots (1440 px, a thread open):
.product/drafts/inbox-tooltips/list-project-label-1440.pngandsidebar-project-1440.png.