Skip to content

Commit 6497a63

Browse files
committed
Make targetable tooltips interactive
1 parent 07c4b12 commit 6497a63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/dash-core-components/src/components/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Tooltip = ({
3030
width: `${position?.x1 - position?.x0}px`,
3131
height: `${position?.y1 - position?.y0}px`,
3232
display: `${show_tooltip ? 'inline-block' : 'none'}`,
33-
pointerEvents: `${targetable ? 'auto' : 'none'}`,
33+
'--Dash-Tooltip-PointerEvents': targetable ? 'auto' : 'none',
3434
'--Dash-Tooltip-Border-Color': border_color,
3535
'--Dash-Tooltip-Background-Color': background_color,
3636
'--Dash-Tooltip-ZIndex': zindex,

components/dash-core-components/src/components/css/tooltip.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
background: var(--Dash-Tooltip-Background-Color);
3333
white-space: nowrap;
3434
z-index: var(--Dash-Tooltip-ZIndex);
35-
pointer-events: none;
35+
pointer-events: var(--Dash-Tooltip-PointerEvents);
3636
box-shadow: 0px 10px 38px -10px var(--Dash-Shading-Strong),
3737
0px 10px 20px -15px var(--Dash-Shading-Weak);
3838
}

0 commit comments

Comments
 (0)