docs: fixed tooltip causing overflow in codeblocks (#2679)
This commit is contained in:
1 parent
6aee2e2265
commit
2db038cd82
3 files changed
+12
-10
No files matched your search
@@ -4,17 +4,17 @@ export default function Tooltip ({ children, text, tooltipClassName, ...rest })
|
||||
const [show, setShow] = React.useState(false);
|
||||
|
||||
return (
|
||||
<div className={`tooltip-container ${tooltipClassName || ''}`}>
|
||||
<div className={show ? 'tooltip-box visible' : 'tooltip-box'}>
|
||||
<span className={`tooltip-container ${tooltipClassName || ''}`}>
|
||||
<span className={show ? 'tooltip-box visible' : 'tooltip-box'}>
|
||||
{text}
|
||||
</div>
|
||||
<div
|
||||
</span>
|
||||
<span
|
||||
onMouseEnter={() => setShow(true)}
|
||||
onMouseLeave={() => setShow(false)}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
</span>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user