Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar bg color #253

Merged
merged 8 commits into from
Feb 4, 2021
Merged

Navbar bg color #253

merged 8 commits into from
Feb 4, 2021

Conversation

cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Feb 4, 2021

Closes #251 and #220

Adds new $navbar-light-bg and $navbar-dark-bg BS4 Sass variables for setting the background color on .navbar-light/.navbar-default (i.e., navbarPage(inverse = FALSE)) and .navbar-dark/.navbar-inverse (i.e., navbarPage(inverse = TRUE)). For example,

library(shiny)

ui <- navbarPage(
  title = "My site",
  theme = bslib::bs_theme("navbar-light-bg" = "lightblue"),
  tabPanel("A", "a"),
  tabPanel("B", "b")
)

shinyApp(ui, function(input, output) {})

Screen Shot 2021-02-04 at 3 49 12 PM

And

library(shiny)

ui <- navbarPage(
  title = "My site", inverse = TRUE,
  theme = bslib::bs_theme("navbar-dark-bg" = "darkblue"),
  tabPanel("A", "a"),
  tabPanel("B", "b")
)

shinyApp(ui, function(input, output) {})

Screen Shot 2021-02-04 at 3 49 41 PM

@cpsievert cpsievert requested a review from schloerke February 4, 2021 21:51
.github/workflows/rituals.yaml Outdated Show resolved Hide resolved
cpsievert and others added 2 commits February 4, 2021 16:30
Co-authored-by: Barret Schloerke <barret@rstudio.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it easier to customize navbar bg color
2 participants