docs: fix code block's usage of z-index (#5238)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user