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 have an issue with the CSS styling in a r2d3 call affecting the entire HTML output of my R Markdown file. For example, I wrapped a r3d3 function and included it in my own package. When I created the vignette for my pkgdown site, the HTML output for that vignette uses the fonts in the CSS style embedded in the r2d3 call. (See https://usstudiescentre.github.io/ussc/articles/rollcall.html for an explanation of what I mean. The rest of the website uses the standard pkgdown CSS style.) I don't want this to happen. I'd like to contain the CSS style in the r2d3 call to that particular code chunk. Is this possible?
Thanks.
The text was updated successfully, but these errors were encountered:
Yes. If you qualify your styles with .r2d3 then they should be scoped to only affect your visualization. For example, here's a re-write of the CSS for the circlepacking example that does this:
Hello,
First of all, thank you for creating R2D3!
I have an issue with the CSS styling in a r2d3 call affecting the entire HTML output of my R Markdown file. For example, I wrapped a r3d3 function and included it in my own package. When I created the vignette for my pkgdown site, the HTML output for that vignette uses the fonts in the CSS style embedded in the r2d3 call. (See https://usstudiescentre.github.io/ussc/articles/rollcall.html for an explanation of what I mean. The rest of the website uses the standard pkgdown CSS style.) I don't want this to happen. I'd like to contain the CSS style in the r2d3 call to that particular code chunk. Is this possible?
Thanks.
The text was updated successfully, but these errors were encountered: