Skip to content

Commit 5adef1f

Browse files
committed
WIP
1 parent 1458d25 commit 5adef1f

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

packages/diracx-web-components/src/components/shared/Sunburst/Chart.css

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/diracx-web-components/src/components/shared/Sunburst/Sunburst.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import { scaleOrdinal } from "d3-scale";
1515

1616
import { Stack, useTheme, Box, Alert, Skeleton } from "@mui/material";
1717

18-
import "./Chart.css";
19-
2018
import type { SunburstTree, SunburstNode } from "../../../types";
2119
import { DisplayPath, getPath, sizeToText as defaultSizeToText } from "./Utils";
2220

@@ -128,9 +126,16 @@ export function Sunburst({
128126
// Create the tooltip
129127
const tooltip = select(tooltipRef.current)
130128
.append("div")
131-
.attr("class", "tooltip")
132129
.style("position", "absolute")
133130
.style("visibility", "hidden")
131+
.style("border-radius", "4px")
132+
.style("padding", "10px")
133+
.style("background-color", "rgba(230, 230, 230, 0.7)")
134+
.style("color", "black")
135+
.style("pointer-events", "none")
136+
.style("z-index", "99")
137+
.style("-webkit-box-shadow", "7px 7px 10px 4px rgba(0, 0, 0, 0.53)")
138+
.style("box-shadow", "7px 7px 10px 4px rgba(0, 0, 0, 0.53)")
134139
.text("");
135140

136141
// Remove any previous elements

0 commit comments

Comments
 (0)