1-line bug (--plot-background: white;) #2081
-
Thanks for your amazing library. We're super excited about it! This line of this commit was a mistake, right? 4baad4d#diff-30ab29a77cf3887e9e7e3ec68157a17e77e891ca7d6335074ab995ab1f27b82fR258-R265 I know it was meant to address #1434. Line 261 in 17ed038 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 If you have any quick tips for how to resolve, I'd appreciate it. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The corresponding selector is
or maybe more precisely:
You can wrap this in your dark mode definitions. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your fast response! 👉 I still think this is a legit bug. Before you replied, I was able to fix it by forking the I was able to follow your suggestion to fix it too. svg [aria-label=tip] {
--plot-background: ${themesMap[theme][ThemeVarNames.PlotBackground]};
} But it feels weird that I'm needing to define What do you think? Thanks. |
Beta Was this translation helpful? Give feedback.
The corresponding selector is
where(.plot)
which has specificity 0, allowing you to override this color with, e.g.:or maybe more precisely:
You can wrap this in your dark mode definitions.