HomePhabricator
Diffusion Comm 691bfa88551e

[web] introduce calculateNavigationSidebarTooltipSize

Description

[web] introduce calculateNavigationSidebarTooltipSize

Summary:
Part of the process when we create tooltips is that we need to calculate the size of the tooltip. This diff introduces the function that will handle calculating the size of the tooltip.

Part of https://linear.app/comm/issue/ENG-5948/hovering-over-every-clickable-element-in-this-sidebar-will-have-a

Test Plan:
Logged out results of this function also inspected the tooltip element (w/o passing the style prop into the tooltip) and confirmed that I was getting the correct size

Screenshot 2023-12-15 at 3.38.56 PM.png (1×3 px, 1 MB)

Screenshot 2023-12-15 at 3.38.44 PM.png (1×3 px, 1 MB)

Reviewers: atul, rohan, kamil, ashoat, tomek

Reviewed By: atul

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D10357

Details

Provenance
ginsuAuthored on Dec 14 2023, 3:27 PM
Reviewer
atul
Differential Revision
D10357: [web] introduce calculateNavigationSidebarTooltipSize
Parents
rCOMMad6ed749d2d9: [web][keyserver] codeVersion -> 56
Branches
Unknown
Tags
Unknown