react-tooltip icon indicating copy to clipboard operation
react-tooltip copied to clipboard

padding is not an option

Open ItsTarik opened this issue 3 years ago • 3 comments

Hello and thanks for the effort, i don't know why the docs mentions a padding prop perhaps its not proposed as an option in the component ? I'm trying to customize the padding of the rendered popup ?

ItsTarik avatar Mar 29 '22 12:03 ItsTarik

Having the same issue, padding is ignored by the component:

<ReactTooltip padding="12px 20px" />

dannya avatar Mar 31 '22 10:03 dannya

@ItsTarik, padding is not in the current published version looking at the commit date. If you compile the code you'll get the padding prop.

jafin avatar Apr 03 '22 12:04 jafin

Thanks, I've handled it with global style, it's not worth it to compile it locally, I've opened this issue because the docs describes the padding prop and it could be so confusing for people ..

ItsTarik avatar Apr 03 '22 13:04 ItsTarik

The padding attributes were added to react-tooltip-d.ts: https://github.com/ReactTooltip/react-tooltip/pull/818

Can you guys check the latest published version and let us know, please?

Thanks!

danielbarion avatar Nov 09 '22 14:11 danielbarion

Closing this one, if you guys need, open a new issue, thanks!

danielbarion avatar Nov 16 '22 16:11 danielbarion