You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can also create a reprex package if that's helpful.
The latest pkgdown version enables dark themes (by setting light-switch: true in _pkgdown.yml). But the dark background causes contrast issues with the text in the DT because text color is hardcoded in DT:
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('DT'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/DT').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered:
Agreed with double checking #447, because I think that would still be an issue in the latest RStudio IDE. rstudio/rstudio#6489 never got a resolution as far as I know
Having hit this same issue in reactable (glin/reactable#21), what I did was inherit text colors by default. And then for RStudio R Notebooks specifically, hack in a terrible workaround to explicitly set the widget's text color ONLY when running inside an R Notebook:
reactable_html<-function(id, style, class, ...) {
# Set text color in R Notebooks to prevent contrast issues when# using a dark editor theme and htmltools 0.4.0.if (isTRUE(getOption("rstudio.notebook.executing"))) {
style<- paste0("color: #333;", style)
}
...
}
https://epiverse-trace.github.io/epiparameter/articles/database.html (different theme but same issue)
I can also create a reprex package if that's helpful.
The latest pkgdown version enables dark themes (by setting
light-switch: true
in_pkgdown.yml
). But the dark background causes contrast issues with the text in the DT because text color is hardcoded in DT:DT/inst/htmlwidgets/lib/datatables/css/jquery.dataTables.extra.css
Lines 26 to 28 in 4e63a46
Are these lines still necessary? Is it possible to inherit from the body text colour, as mentioned in DataTables/DataTablesSrc#157 (comment)?
Session info
By filing an issue to this repo, I promise that
xfun::session_info('DT')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/DT')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: