-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plot()
outputs require white background (or white lines?) for the dark mode website
#2729
Comments
I think this is expected behavior as the default background color for base plots is transparent. I set the background color to white in #2730 and the preview looks fine in dark mode. Given this just another plot tweak, I think we'd leave it to users to set up parameters, and just leave this test in the vignette as a reminder of the issue. |
I agree with the approach to let users set up the parameter. Thanks for adding that test to the vignette! |
Hmmm, are you sure we shouldn't set the background colour with css? |
Added the CSS approach to #2730, works fine so long as we explicitly set the logo background to transparent. Or maybe we should only set background to white if dark-mode is active? |
Are we not adding a CSS class to plot images? Would make it easier to target their backgrounds specifically. |
Currently, the
plot()
outputs are lost in the background when the dark mode is used.Possibly the standard suggested action to do would be to try to keep the default white background.
reference link: https://pkgdown.r-lib.org/articles/test/rendering.html
The text was updated successfully, but these errors were encountered: