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

justified parameter of radioGroupButtons does not work with bslib #423

Closed
mhanf opened this issue Sep 20, 2021 · 2 comments
Closed

justified parameter of radioGroupButtons does not work with bslib #423

mhanf opened this issue Sep 20, 2021 · 2 comments

Comments

@mhanf
Copy link

mhanf commented Sep 20, 2021

Hello there,
I have been testing the library shinyWidgets in an application that uses bslib to customize the ui. If I use bootstrap version = 4 the justified parameter of radioGroupButtons does not work. A similar problem is observed for checkboxGroupButtons.

Here is an example :

ui<-shiny::fluidPage(
theme = bslib::bs_theme(version = 4),
shinyWidgets::radioGroupButtons(
inputId = "Id066",
label = "Label",
choices = c("A", "B", "C"),
justified = TRUE,
status = "danger"
)
)

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

shiny::shinyApp(ui = ui, server = server)

Many thanks in advance

@pvictor
Copy link
Member

pvictor commented Sep 22, 2021

Hello,

Thanks for reporting this, should be fixed if you re-install from GitHub.

Victor

@mhanf
Copy link
Author

mhanf commented Sep 22, 2021

hello Victor
thank you so much for your reply. I install shinyWidgets from github and this solved the problem. However this test made me discover another problem. When justified = TRUE the option individual doesn't work (both for bs3 and bs4) : no margin is visible between buttons for radioGroupButtons and checkboxGroupButtons.
Here is an example in case of :

ui<-shiny::fluidPage(
theme = bslib::bs_theme(version = 4),
shinyWidgets::checkboxGroupButtons(
inputId = "id1",
label = "OK",
selected = "A",
choices = c("A","B","C"),
individual = TRUE,
justified = FALSE),
shinyWidgets::checkboxGroupButtons(
inputId = "id2",
label = "Problem",
selected = "A",
choices = c("A","B","C"),
individual = TRUE,
justified = TRUE)
)

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

shiny::shinyApp(ui = ui, server = server)

Thank Again
Best regard
Matthieu

@pvictor pvictor closed this as completed Sep 4, 2024
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

No branches or pull requests

2 participants