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
Consider documenting pkgdown-navbar-bg and pkgdown-navbar-bg-dark as needed to set navbar color with a bootswatch theme with light-switch enabled
#2703
Open
remlapmot opened this issue
Jul 8, 2024
· 1 comment
// Harmonize alignment of navbar elements (search field vs. rest)
line-height: initial;
}
[data-bs-theme="dark"] .navbar {
background: $pkgdown-navbar-bg-dark;
}
I think you've kindly left an override in, pkgdown-navbar-bg (and pkgdown-navbar-bg-dark), which I used to specify the expected navbar colour under the bslib menu, but these don't seem to be documented.
I contribute to a site on which we've traditionally used the United theme https://bootswatch.com/united/. That theme uses a navbar in Ubuntu orange.
In pkgdown 2.1.0 if I don't specify the light-switch the navbar is the expected colour (as it is when using previous versions of pkgdown).
But if I enable the light-switch the navbar is set to a much lighter colour than that defined in the theme.
Looking at the code
pkgdown/inst/BS5/assets/pkgdown.scss
Lines 23 to 40 in f20a649
I think you've kindly left an override in,
pkgdown-navbar-bg
(andpkgdown-navbar-bg-dark
), which I used to specify the expected navbar colour under thebslib
menu, but these don't seem to be documented.With this specified I get the expected navbar color.
These two variables are certainly helpful to me and would seem worth a mention in the customise.Rmd vignette.
The text was updated successfully, but these errors were encountered: