HomePhabricator
Diffusion Comm d178ee229204

[web] Add TooltipMenu, TooltipButton and TooltipItem components

Description

[web] Add TooltipMenu, TooltipButton and TooltipItem components

Summary:
Introduce shared components to create all tooltips.
TooltipMenu: main tooltip component to display items
TooltipButton: button to use in tooltip menu
TooltipTextItem: item to display in menu

TooltipMenu will get items as children: single button or single item, or array of those, and some props to find position.

Test Plan:
Check if tooltips are displayed as before
Create more tooltipButtons, check if tooltipMenu is displayed correctly, check if each button works. Check if it's not possible to use left/right position for tooltip with multiple buttons, and if tooltipHeight is calculated correctly.

Reviewers: palys-swm, ashoat

Reviewed By: palys-swm, ashoat

Subscribers: ashoat, palys-swm, Adrian, atul

Differential Revision: https://phabricator.ashoat.com/D991

Details

Provenance
KatPoAuthored on Apr 9 2021, 1:25 AM
Reviewer
tomek
Differential Revision
Restricted Differential Revision
Parents
rCOMM05b7544ef3b7: [landing] Add SVG illustrations
Branches
Unknown
Tags
Unknown