observablehq/plot

1-line bug (--plot-background: white;)

ryancwalsh opened this issue · 0 comments

Thanks for your amazing library. We're super excited about it!

This line of this commit was a mistake, right?

image

4baad4d#diff-30ab29a77cf3887e9e7e3ec68157a17e77e891ca7d6335074ab995ab1f27b82fR258-R265

I know it was meant to address #1434.

--plot-background: white;

I assume what we want is:

  background: var(--plot-background);

Right now, my tooltips look bad when my app is in dark mode (because the --plot-background gets overridden to white for this SVG.

image

If you have any quick tips for how to resolve, I'd appreciate it.

Thanks.