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

Problem in Rmarkdown inline rendering with dark-themed Rstudio #21

Closed
arthurwelle opened this issue Dec 13, 2019 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@arthurwelle
Copy link

Hi, nice work on the package!
I´m using Rstudio with a dark theme ("vibrant ink"), and the tables shown in the preview of the Rmakdown are blank due to its font color.
Regards!

image

@glin
Copy link
Owner

glin commented Mar 22, 2020

Hi, thanks for reporting this, and sorry it took a while to respond. This should now be fixed in the latest development version on GitHub (670de5b).

The problem is that the IDE applies the dark theme's text color styles to HTML widget output in R Notebooks. Since reactable doesn't set a default text color on most parts of the table, you end up with light text on white background. This seems to only happen with htmltools 0.4.0 installed, not 0.3.6 or older, so I think it's more of an issue with the IDE or htmltools. However, I've still implemented a workaround by setting an explicit text color on the table when rendered in an R Notebook.

reactable in a dark-themed RStudio R Notebook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants