docs: fix page crashing when using google translate (#8009)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-07-08 10:24:45 +02:00
1 parent d2c89e7071
commit 3d6b1dc7ae
1 file changed
+2 -3
@@ -26,13 +26,12 @@ export const Tooltip = ({
const elementId = useId() const elementId = useId()
return ( return (
<> <span className={clsx(className, "notranslate")} translate="no">
<span <span
id={elementId} id={elementId}
data-tooltip-content={text} data-tooltip-content={text}
data-tooltip-html={html} data-tooltip-html={html}
data-tooltip-id={elementId} data-tooltip-id={elementId}
className={className}
> >
{children} {children}
</span> </span>
@@ -54,6 +53,6 @@ export const Tooltip = ({
> >
{tooltipChildren} {tooltipChildren}
</ReactTooltip> </ReactTooltip>
</> </span>
) )
} }