Skip to content
Discussion options

You must be logged in to vote

You can follow what we do in page_sidebar(); we basically re-use some of Bootstrap's nav classes for consistent styling, but without using an actual <nav> element.

bslib/R/page.R

Lines 262 to 272 in b7a02e7

if (rlang::is_bare_character(title) || rlang::is_bare_numeric(title)) {
title <- h1(title, class = "bslib-page-title navbar-brand")
}
navbar_title <-
if (!is.null(title)) {
div(
class = "navbar navbar-static-top",
div(title, class = "container-fluid")
)
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jack-davison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants