Skip to content

fix(web): anchor direct tooltips to their parent - #426

Merged
tiensonqin merged 2 commits into
native-parity-0.1-backportsfrom
devin/1795762956-web-direct-tooltip
Nov 27, 2026
Merged

tiensonqin merged 2 commits into
native-parity-0.1-backportsfrom
devin/1795762956-web-direct-tooltip

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Correct direct anchored tooltip trigger resolution so the tooltip's retained parent control receives the hover/focus/ARIA wiring, matching the documented direct-child contract.
  • Keep explicit anchor-target resolution unchanged; sibling/container popup anchoring still uses the existing fallback.
  • Add a retained-anchor regression covering an icon-only button whose direct tooltip child previously resolved to an inner icon instead of the button.

Validation

  • dune build examples/components/web passed.
  • node --test platform/web/test/retained-popup-anchor.test.mjs passed: 16 tests, 0 failures.
  • Confirmed the new regression failed before the fix because the trigger resolved to the inner child rather than the retained parent control.

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

Devin Review

Direct retained tooltips use the parent control as their hover/focus trigger instead of an inline child that may not receive pointer input.
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

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.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

View findings in Devin Review · Follow Devin's work

Devin Review

@tiensonqin
tiensonqin merged commit 4b72f7e into native-parity-0.1-backports Nov 27, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant