pull/4401/head
Liana Husikyan 11 months ago committed by GitHub
parent 0d24909cd9
commit 4c238b8087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      libs/remix-ui/helper/src/lib/components/custom-tooltip.tsx

@ -18,16 +18,15 @@ export function CustomTooltip({ children, placement, tooltipId, tooltipClasses,
<OverlayTrigger
placement={placement}
overlay={
<Popover id={`popover-positioned-${placement}`}>
<Popover.Content
id={!tooltipId ? `${tooltipText}Tooltip` : tooltipId}
style={{ minWidth: 'fit-content' }}
className={'text-wrap p-1 px-2 bg-secondary w-100' + tooltipClasses}>
{typeof tooltipText === 'string' ? <span className={'text-wrap p-1 px-2 bg-secondary ' + { tooltipTextClasses }}>{tooltipText}</span> : tooltipText}
</Popover.Content>
</Popover>
}>
<Popover id={`popover-positioned-${placement}`}>
<Popover.Content
id={!tooltipId ? `${tooltipText}Tooltip` : tooltipId}
style={{ minWidth: 'fit-content' }}
className={'text-wrap p-1 px-2 bg-secondary w-100' + tooltipClasses}>
{typeof tooltipText === 'string' ? <span className={'text-wrap p-1 px-2 bg-secondary ' + { tooltipTextClasses }}>{tooltipText}</span> : tooltipText}
</Popover.Content>
</Popover>
}>
{children}
</OverlayTrigger>
</Fragment>

Loading…
Cancel
Save