Open AlbertRapp opened 4 months ago
Could you try with at least the latest stable version? You are a little bit behind, i.e., the current is 1.4.553 (1.4.526 was a pre-release from last December). 1.4 stable was released on the 15th of February (1.4.550)
(In current 1.5 pre-release, there are no changes made regarding Dashboard.)
Oh my bad I thought my system auto-updates. In any case I tried this now with v.1.4.554
and the issue still persists.
@AlbertRapp The main issue here is that Quarto already includes a version of bslib's component dependencies. Adding a bslib::value_box()
brings in bslib's component dependency, which ultimately makes different assumptions about usage and available resources on the page. I opened an issue in bslib to mitigate some of these problems.
For now, I'd recommend sticking with Quarto's native versions of bslib-related components or to use bslib to emit the markup without the dependency. The easiest way to do that is to cast the bslib component to and HTML character string, e.g.
bslib::value_box(
'Adelie penguins',
theme = "bg-gradient-blue-red",
value = 23432,
full_screen = FALSE ## Quarto still makes its own decision about this
) |>
format() |>
htmltools::HTML()
Nice! That's a fantastic work-around. Thank you @gadenbuie.
You're welcome! After rstudio/bslib#1045 this workaround won't be required, although there may be unexpected behavior if bslib and Quarto's implementations drift.
Bug description
I used
bslib::value_box()
to add a value box to a Quarto dashboard due to better customizability (see also #9453). But this means sidebars cannot be toggled anymore after adding the value box. My guess is that something about the value box's full screen mode (that is available in the Quarto dashboard even though this option is set to FALSE) prevents the moving in and out of the sidebar. But this is just a hunch.Steps to reproduce