Page MenuHomePhabricator

[native] Add possibility to display nux tip above an item
ClosedPublic

Authored by inka on Aug 13 2024, 9:27 AM.
Tags
None
Referenced Files
F3193594: D13072.id43462.diff
Fri, Nov 8, 11:06 PM
Unknown Object (File)
Fri, Nov 8, 4:17 PM
Unknown Object (File)
Fri, Nov 8, 12:23 PM
Unknown Object (File)
Thu, Nov 7, 3:49 AM
Unknown Object (File)
Thu, Nov 7, 3:11 AM
Unknown Object (File)
Thu, Nov 7, 1:50 AM
Unknown Object (File)
Fri, Oct 18, 9:48 PM
Unknown Object (File)
Fri, Oct 18, 9:42 PM
Subscribers

Details

Summary

issue: ENG-9039
I initially removed this logic during my refactor, but @ashoat requested adding it back in D12981

Test Plan

Rendered a tip with both above and below. Checked that the triangle is in the correct place, and the animation expands in the right direction

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Aug 13 2024, 9:44 AM

Thanks for doing this!

native/tooltip/nux-tips-overlay.react.js
206 ↗(On Diff #43367)

Why two statements on one line?

tomek added inline comments.
native/tooltip/nux-tips-overlay.react.js
283 ↗(On Diff #43367)

Why wasn't it included in the deps?

This revision is now accepted and ready to land.Aug 14 2024, 6:46 AM
native/tooltip/nux-tips-overlay.react.js
206 ↗(On Diff #43367)

I don't know what happened here. I'll fix this

283 ↗(On Diff #43367)

Before it was outside of the component

Address review + fix translation y value (request from D13071)