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
navset_card_tab() creates a tabbed card, but doesn't include all of the arguments of card(). In particular, you cannot give the card a class without reaching for htmltools::tagAppendAttributes().
library(bslib)
navset_card_tab(
class="bg-text-primary",
nav_panel("One", "First panel")
)
#> Error in buildTabset(..., ulClass = paste0("nav nav-", type), id = id, : Tabs should all be unnamed arguments, but some are named: class
(Not that .text-bg-primary would look great on a navset_card_tab(), adding the class reveals other styling issues. That said, it should at least be possible.)
The text was updated successfully, but these errors were encountered:
The bslib::card function has a class argument which allows to set the class of a card container. In contrast, the navset_card_tab function does not have such argument. However, when I explore the content of the Shiny app using the web developper tools, I can add the 'bg-dark' class to the div defining the header area (which is already assigned to class="card-header bslib-navs-card-title") and change this element to "dark mode".
navset_card_tab()
creates a tabbed card, but doesn't include all of the arguments ofcard()
. In particular, you cannot give the card a class without reaching forhtmltools::tagAppendAttributes()
.(Not that
.text-bg-primary
would look great on anavset_card_tab()
, adding the class reveals other styling issues. That said, it should at least be possible.)The text was updated successfully, but these errors were encountered: