Repository navigation
fix(Tooltip): avoid wrapping child in an extra Pressable focus stop - #5287
EnesKartal wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Found potential problems with the pull request:
|
|
Thanks! This fixes all three parts of #5282 and goes into 6.0. Before review:
|
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Fixes #5282.
Tooltipwrapped itschildrenin a<Pressable>withonPress,onLongPress,onPressOut, andonHoverIn/onHoverOut, even though the same props were also cloned ontochildren. On Android, Web, and iOS this created an extra focusable/accessible wrapper stop (and stretched tap area) separate from the child control.Changes
<Pressable>wrapper inTooltipwith a non-pressable<View collapsable={false}>used only for layout measurement (childrenWrapperRef.current?.measure(...)) and cursor styling.