Skip to content
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

Test white background for plots in dark mode #2730

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions inst/BS5/assets/pkgdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ body > .container .row {
main img {
max-width: 100%;
height: auto;
background-color: white;
}
main table {
display: block;
Expand Down Expand Up @@ -311,6 +312,7 @@ img.logo {
float: right;
width: 100px;
margin-left: 30px;
background-color: transparent;
}
.template-home img.logo {
width: 120px;
Expand Down
8 changes: 8 additions & 0 deletions vignettes/test/rendering.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ Yay[^footnote]
plot(1:10)
```

Use a white background for base plots in dark mode.

```{r}
#| fig.alt: Test plot with white background
par(bg = 'white')
plot(50:10)
```

## External files

```{r}
Expand Down
Loading