mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
Added wrapper for tooltip
This commit is contained in:
parent
2dcb2aea7a
commit
8146a78f7d
@ -10,7 +10,7 @@ const TooltipContent = styled.div`
|
||||
font-size: ${FONT_SIZE.SMALLEST};
|
||||
`;
|
||||
|
||||
const StyledRcTooltip = styled(RcTooltip)`
|
||||
const Wrapper = styled.div`
|
||||
.rc-tooltip {
|
||||
position: absolute;
|
||||
z-index: 1070;
|
||||
@ -173,14 +173,16 @@ const StyledRcTooltip = styled(RcTooltip)`
|
||||
const Tooltip = ({
|
||||
content, placement = 'bottomRight', children, className,
|
||||
}) => (
|
||||
<StyledRcTooltip
|
||||
<Wrapper>
|
||||
<RcTooltip
|
||||
className={className}
|
||||
arrowContent={<div className="rc-tooltip-arrow-inner" />}
|
||||
placement={placement}
|
||||
overlay={<TooltipContent>{content}</TooltipContent>}
|
||||
>
|
||||
{children}
|
||||
</StyledRcTooltip>
|
||||
</RcTooltip>
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
Tooltip.propTypes = {
|
||||
|
Loading…
Reference in New Issue
Block a user