rstudio / bslib

Tools for theming Shiny and R Markdown via Bootstrap 3, 4, or 5.
https://rstudio.github.io/bslib/
Other
486 stars 58 forks source link

Doesn't work nav-tabs-link-active-bg #346

Closed apalacio10 closed 3 years ago

apalacio10 commented 3 years ago

Hello,

I'm not sure if it's a issue, but with bootswatch cyborg it's not possible to set background color in nav-tabs-link-active. That happens with version 4 and 5

`library(shiny)

Main app UI

ui <- fluidPage(theme = bslib::bs_theme(version = 4,bootswatch = "cyborg","nav-tabs-link-active-bg"="#FA9300","nav-tabs-border-color"="#FA9300", "nav-tabs-link-active-border-color"="#FA9300"), tabsetPanel( tabPanel("One", "No padding"), tabPanel("Two", "Very sad!") ))

Main app server

server <- function(input, output, session) {

}

shinyApp(ui, server)`

cpsievert commented 3 years ago

Unfortunately Bootstrap Sass variables aren't guaranteed to work well with Bootswatch themes since Bootswatch themes often add additional CSS rules that either conflict with, or simply don't listen to Bootstrap Sass variables.

To put it another way, if you're wanting to customize a Bootswatch theme, you're likely going to want to add additional rules instead of setting Bootstrap Sass variables.

github-actions[bot] commented 1 year ago

This issue has been automatically locked. If you believe you have found a related problem, please open a new issue (with a reproducible example or feature request) and link to this issue.