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
HTML widgets can inject Bootstrap as an unwanted CSS dependencies that can be difficult for users to troubleshoot. The way the DT and reactable packages work is more user-friendly, and allows for easy embedding of the widget in any webpage or site.
For users who don't want to use Bootstrap or for those using R Markdown HTML output formats that don't include Bootstrap already, it would be nice if the default behavior were to block the CSS dependency. This means that the default behavior would preserve the CSS of the webpage or site, but that the widget itself might lose some styling. The alternative, which is the current default behavior, is that Bootstrap can be loaded site-wide. The outcome with this default behavior is that at worst, the webpage or site CSS breaks; at best, the page will not look at all as the user expected it to.
For discussion:
HTML widgets can inject Bootstrap as an unwanted CSS dependencies that can be difficult for users to troubleshoot. The way the DT and reactable packages work is more user-friendly, and allows for easy embedding of the widget in any webpage or site.
For users who don't want to use Bootstrap or for those using R Markdown HTML output formats that don't include Bootstrap already, it would be nice if the default behavior were to block the CSS dependency. This means that the default behavior would preserve the CSS of the webpage or site, but that the widget itself might lose some styling. The alternative, which is the current default behavior, is that Bootstrap can be loaded site-wide. The outcome with this default behavior is that at worst, the webpage or site CSS breaks; at best, the page will not look at all as the user expected it to.
Example with distill and crosstalk:
https://themockup.blog/posts/2020-05-29-client-side-interactivity-do-more-with-crosstalk/
If implemented, we should issue a warning for users who try to use an HTML widget with CSS dependencies like:
Related issues:
https://ukgovdatascience.github.io/govdown/#crosstalk
rstudio/blogdown#44
rstudio/crosstalk#26
ukgovdatascience/govdown#57
rstudio/distill#275
The text was updated successfully, but these errors were encountered: