Skip to content

Commit 27e2fb7

Browse files
committed
fix: tooltip background in dark and current themes
1 parent e75708c commit 27e2fb7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/js/styles.css

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,18 @@
3232

3333
.pyobsplot-plot.dark svg,
3434
.pyobsplot-plot.dark figure {
35+
--plot-background: black;
3536
color: white;
3637
background-color: black;
3738
}
3839

39-
.pyobsplot-plot.dark [aria-label=tip][fill=white] {
40-
fill: black;
41-
}
42-
4340
.pyobsplot-plot.current svg,
4441
.pyobsplot-plot.current figure {
42+
--plot-background: transparent;
4543
color: currentColor;
4644
background-color: transparent;
4745
}
4846

49-
.pyobsplot-plot.current [aria-label=tip][fill=white] {
50-
fill: white;
51-
color: black;
52-
}
53-
5447
/* VSCode workarounds */
5548
.cell-output-ipywidget-background:has(.p-Widget):has(.pyobsplot-plot.dark) {
5649
background-color: black !important;

0 commit comments

Comments
 (0)