diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/utils/tooltip.ts b/superset-frontend/plugins/plugin-chart-echarts/src/utils/tooltip.ts index a4433cc95..e630f1142 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/utils/tooltip.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/utils/tooltip.ts @@ -25,6 +25,8 @@ export function getDefaultTooltip(refs: Refs) { return { appendToBody: true, borderColor: 'transparent', + // CSS hack applied on this class to resolve https://github.com/apache/superset/issues/30058 + className: 'echarts-tooltip', position: ( canvasMousePos: [number, number], params: CallbackDataParams, diff --git a/superset-frontend/src/GlobalStyles.tsx b/superset-frontend/src/GlobalStyles.tsx index 784b3d9b2..b9cb0e550 100644 --- a/superset-frontend/src/GlobalStyles.tsx +++ b/superset-frontend/src/GlobalStyles.tsx @@ -34,6 +34,11 @@ export const GlobalStyles = () => ( th { font-weight: ${theme.typography.weights.bold}; } + // CSS hack to resolve the issue caused by the invisible echart tooltip on + // https://github.com/apache/superset/issues/30058 + .echarts-tooltip[style*='visibility: hidden'] { + display: none !important; + } // TODO: Remove when on Ant Design 5. // Check src/components/Modal for more info. .modal-functions-ok-button {