Skip to content

Commit

Permalink
fix: add zIndex as a prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Karine Brandelli Padilha committed Feb 3, 2025
1 parent 84f42e2 commit 48fc2b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/feedback/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ export interface TooltipProps extends DefaultProps, MuiTooltipProps {
open?: boolean
children: ReactElement<Record<string, unknown>>
enterDelay?: number
zIndex?: number
}

const Tooltip = ({
title,
zIndex,
children,
withWrapper,
wrapperStyle,
enterDelay = 1000,
title,
...otherProps
}: TooltipProps) => (
<MuiTooltip
Expand All @@ -42,7 +44,7 @@ const Tooltip = ({
slotProps={{
popper: {
sx: {
zIndex: 9999
zIndex: zIndex || 9999
}
}
}}
Expand Down

0 comments on commit 48fc2b7

Please sign in to comment.