The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Fix tooltips rendering under popovers and menus (#75373)
Egor Grushin7ee95ea5d885
diff --git a/frontend/src/metabase/ui/components/overlays/Tooltip/Tooltip.config.tsx b/frontend/src/metabase/ui/components/overlays/Tooltip/Tooltip.config.tsxindex bef0f865ad7..0fb70481f4a 100644--- a/frontend/src/metabase/ui/components/overlays/Tooltip/Tooltip.config.tsx+++ b/frontend/src/metabase/ui/components/overlays/Tooltip/Tooltip.config.tsx@@ -1,7 +1,8 @@-import { type MantineThemeOverride, Tooltip } from "@mantine/core";-import cx from "classnames";--import ZIndex from "metabase/css/core/z-index.module.css";+import {+ type MantineThemeOverride,+ Tooltip,+ getDefaultZIndex,+} from "@mantine/core";import { PORTAL_CONTAINER_ID } from "../PortalContainer/constants";@@ -13,6 +14,10 @@ export const tooltipOverrides: MantineThemeOverride["components"] = {arrowSize: 10,withArrow: true,withinPortal: true,+ // Mantine puts Tooltip, Popover and Menu on the same "popover" tier, so a+ // tooltip ties with them and loses on portal DOM order. +1 keeps it in its+ // tier but always renders above same-tier overlays.+ zIndex: getDefaultZIndex("popover") + 1,portalProps: {target: `#${PORTAL_CONTAINER_ID}`,},@@ -28,7 +33,7 @@ export const tooltipOverrides: MantineThemeOverride["components"] = {color: "tooltip-background",},classNames: {- tooltip: cx(TooltipStyles.tooltip, ZIndex.Overlay),+ tooltip: TooltipStyles.tooltip,arrow: TooltipStyles.arrow,},}),