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
Unknown Object (File)
Mon, Sep 16, 3:52 AM
Unknown Object (File)
Sun, Sep 15, 8:11 PM
Unknown Object (File)
Sun, Sep 15, 9:07 AM
Unknown Object (File)
Sun, Sep 15, 9:06 AM
Unknown Object (File)
Mon, Sep 9, 1:06 PM
Unknown Object (File)
Sun, Sep 8, 5:21 PM
Unknown Object (File)
Sun, Sep 8, 5:55 AM
Unknown Object (File)
Fri, Sep 6, 7:19 AM
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)