Skip to content

Commit

Permalink
put tooltip back in front & adjust styling
Browse files Browse the repository at this point in the history
  • Loading branch information
KatrinaTurner committed Apr 30, 2024
1 parent b34cb6f commit 99c5d9e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ export const Tooltip: React.FC<TooltipProps> = ({ rowNames, field, panelId }) =>
return text;
})
.style('padding', '10px 15px')
.style('background', 'black')
.style('background', '#19191A')
.style('color', 'white')
.style('border', '#A8A8A8 solid 5px')
.style('border', '#A8A8A8 solid 2px')
.style('border-radius', '5px')
.style('left', mousePosition.mouseX + 'px')
.style('top', mousePosition.mouseY + 'px')
.style('opacity', 0)
.style('z-index','1')
.style('position', 'absolute');
div.transition().duration(200).style('opacity', 0.8);
})
Expand Down Expand Up @@ -91,13 +92,14 @@ export const Tooltip: React.FC<TooltipProps> = ({ rowNames, field, panelId }) =>
return text;
})
.style('padding', '10px 15px')
.style('background', 'black')
.style('background', '#19191A')
.style('color', 'white')
.style('border', '#A8A8A8 solid 5px')
.style('border', '#A8A8A8 solid 2px')
.style('border-radius', '5px')
.style('left', mousePosition.mouseX + 'px')
.style('top', mousePosition.mouseY + 'px')
.style('opacity', 0)
.style('z-index', '1')
.style('position', 'absolute');
div.transition().duration(200).style('opacity', 0.8);
})
Expand Down

0 comments on commit 99c5d9e

Please sign in to comment.