UUI icon indicating copy to clipboard operation
UUI copied to clipboard

Make Tooltip component based on Dropdown

Open AlekseyManetov opened this issue 3 years ago • 1 comments

Description Now Tooltip and Dropdown components works very similar, but has each own implementation and codebase. Also some functions only exist in Dropdown component, but missing in Tooltip, for example 'boundary' close mode.

Describe the solution you'd like It will be good if we try to make Tooltip component base on Dropdown, so Tooltip will extend all Dropdown logic and only provide own render implementation and default props.

AlekseyManetov avatar Jan 21 '22 12:01 AlekseyManetov

Additionally I'd like to ask pass arrowProps in Dropdown's renderDropdownBody method, as it is implemented in Tooltip, to have possibility manage arrow placement. Because we have need to create Dropdown with arrow, and sometimes it is not working properly, when not enough space to drop bottom:

image

oleksapro avatar May 17 '22 12:05 oleksapro

Released in 4.10.0. Minor issues reported here.

NatalliaAlieva avatar Feb 07 '23 10:02 NatalliaAlieva