Skip to content

Commit

Permalink
Merge pull request #43 from bprusinowski/feat/append-tooltip-to-body
Browse files Browse the repository at this point in the history
feat: Append Tooltip to body
  • Loading branch information
bprusinowski authored Jul 9, 2023
2 parents 77bc893 + c4f721e commit 1ba07e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { select } from "d3-selection";
export type Tooltip = ReturnType<typeof makeTooltip>;

export const makeTooltip = (div: HTMLDivElement) => {
const root = select(div)
.selectAll(".tooltip")
const root = select(document.body)
.selectAll(".plotteus-tooltip")
.data([null])
.join("div")
.attr("class", "tooltip")
.attr("class", "plotteus-tooltip")
.style("z-index", "999999")
.style("position", "fixed")
.style("top", 0)
.style("left", 0)
Expand Down

0 comments on commit 1ba07e0

Please sign in to comment.