rstudio / bslib

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

Extra unwanted spacing when using dynamic UI to render cards/value boxes/etc in gap context #992

Closed cpsievert closed 4 months ago

cpsievert commented 4 months ago

Note that this example yields "double padding" between the cards, since the margin bottom of the 1st card fails to get undone:

library(bslib)

ui <- page_fillable(
  uiOutput("card_1"),
  card("card 2")
)

server <- function(input, output) {
  output$card_1 <- renderUI(card("card 1"))
}

shinyApp(ui, server)

The margin-bottom for the 1st card should get set to 0 like it does in this example:

library(bslib)

page_fillable(
  card("card 1"),
  card("card 2")
)
github-actions[bot] commented 2 months ago

This issue has been automatically locked. If you have found a related problem, please open a new issue (with a reproducible example or feature request) and link to this issue. :raising_hand: Need help? Connect with us on Discord or Posit Community.