r-lib / pkgdown

Generate static html documentation for an R package
https://pkgdown.r-lib.org/
Other
713 stars 335 forks source link

CSS class for version number in navbar doesn't have best contrast for some bootswatch themes #2061

Closed dchiu911 closed 2 years ago

dchiu911 commented 2 years ago

The default CSS class text-muted for the version number makes the text appear grey, which isn't the best contrast with the Cerulean bootswatch theme, for example.

<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.2.1</small>

Can we create this styling dynamically based on the theme with maybe different shades of grey?

MLopez-Ibanez commented 2 years ago

Or reverse fg/bg like in the classic themes, so it looks like: https://future.apply.futureverse.org/

hadley commented 2 years ago

I think this is a buglet with the theme, so I'd suggest fixing it with (s)css and manually overriding the styling of text-muted.