Open lukebandy opened 1 month ago
Thanks for the report @lukebandy. I think I see what you mean be "works" and "doesn't work": in page_navbar()
, changing the primary color changes the navbar background color; page_sidebar()
on the other hand doesn't use primary
and instead follows $navbar-bg
.
page_sidebar() |
page_navbar() |
---|---|
There's a group of issues around this behavior:
In this case, setting page_navbar(inverse = FALSE)
in the second example gives the same results as with page_sidebar()
, which doesn't have an inverse
argument.
I found a work around to manually set the page_sidebar header background"
theme = bs_theme(bootswatch = "litera") %>%
bs_add_rules(
list(
"body { --bslib-page-sidebar-title-bg: #3f5a36; }"
)
)
Describe the problem
To be honest this is a null issue as it's fine to just use
page_navbar()
, but did lose me some time to work around.Doesn't work:
But
page_navbar()
works:And other arguments (from the documentation) work with
page_sidebar
:Session Info
R version 4.4.1 bslib: 0.8.0