Repository navigation
fix(web): anchor direct tooltips to their parent - #426
Merged
tiensonqin merged 2 commits intoNov 27, 2026
Merged
Conversation
Direct retained tooltips use the parent control as their hover/focus trigger instead of an inline child that may not receive pointer input.
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Only use the retained parent directly for owned tooltips; layout-container sibling patterns keep resolving to their trigger sibling so button focus retains the description.
Contributor
There was a problem hiding this comment.
Devin Review found 1 finding. Devin automatically fixed it.
Fixed by Devin (1)
- Sibling tooltips lose button descriptions — Fixed by preserving the legacy sibling fallback for tooltips whose parent is a multi-child layout container, while direct control-owned tooltips still resolve to the parent control; regression coverage now includes both shapes.
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.
Summary
tooltiptrigger resolution so the tooltip's retained parent control receives the hover/focus/ARIA wiring, matching the documented direct-child contract.anchor-targetresolution unchanged; sibling/container popup anchoring still uses the existing fallback.Validation
dune build examples/components/webpassed.node --test platform/web/test/retained-popup-anchor.test.mjspassed: 16 tests, 0 failures.Link to Devin session: https://app.devin.ai/sessions/4db1c451562249ac8356dbf66216a01b
Open in Devin Desktop: https://app.devin.ai/desktop/session/4db1c451562249ac8356dbf66216a01b?variant=devin
Requested by: @tiensonqin
🟢 Devin fixed the finding · Follow Devin's work