I've been working on a pkgdown template, rotemplate.
For a particular package whose README.Rmd calls leaflet, we see a weird light blue background in part of the navbar on the home page around "part of rOpenSci" and the version label, while other pages of the same package website are fine. The problem doesn't happen on other package websites using the template.
I'm a bit at a loss. How could I solve this? Is this an issue in my template? Could the leaflet embedding be tweaked somehow? Or should I expect pkgdown to prevent this?
I don't know if you can control the ordering of the stylesheets, since I assume leaflet's is embedded somehow.
You could use an id selector in the ropensci css, I imagine, (#info), or invoke !important, but that's the extent of my CSS knowledge. ¯\(°_o)/¯
I did add a link to the leafletfix.css file in my response above, but I'm not sure what the implications would be of trying to fix it there, versus on your end. (In an easy case, I'd think maybe it could be a child of #htmlwidget, or something like that, where you'd just add specificity to the leaflet selector — but, as I said, I'm basically making that up! )
So, as long as the leaflet stuff isn't really hermetic, here's a quick fix by @RLesur (merci !), that worked! Now in ropensci.css I set values for background-color and box-shadow, and the website looks fine.