docs: fix code block's usage of z-index (#5238)

This commit is contained in:
Shahed Nasser
2023-09-27 18:48:18 +03:00
committed by GitHub
parent 6942a907a5
commit f5a698ad6f
3 changed files with 15 additions and 5 deletions
@@ -21,6 +21,7 @@ export const Tooltip = ({
children,
html = "",
tooltipChildren,
className,
...tooltipProps
}: TooltipProps) => {
const [elementId, setElementId] = useState<string>("")
@@ -38,6 +39,7 @@ export const Tooltip = ({
data-tooltip-content={text}
data-tooltip-html={html}
data-tooltip-id={elementId}
className={className}
>
{children}
</span>