quarto-dev / quarto-dev/quarto-cli
Sidebar in Dashboard not toggleable anymore with `{bslib}` value box
@cscheid is already working on this.
Since Jun 5, 2024.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
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
---
format: dashboard
---
# Page 1
## {.sidebar}
This sidebar is not toggleable anymore
## Main body
### Value box
```{r}
bslib::value_box(
'Adelie penguins',
theme = "danger",
value = 23432,
full_screen = FALSE ## This is nevertheless possible in the dashboard
)
```
Expected behavior
Sidebar moves in and out after clicking on the arrow thingy
Actual behavior
Side doesn't move
Your environment
IDE: RStudio 2023.12.1 Build 402
OS: Ubuntu 22.04.4 LTS
Quarto check output
Quarto 1.4.526
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.9: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.526
Path: /opt/quarto/bin
[✓] Checking tools....................OK
TinyTeX: v2024.03
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /home/albert/.TinyTeX/bin/x86_64-linux
Version: 2023
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.5 (Conda)
Path: /home/albert/anaconda3/bin/python
Jupyter: 5.3.0
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.3
Path: /usr/lib/R
LibPaths:
- /home/albert/R/x86_64-pc-linux-gnu-library/4.3
- /usr/local/lib/R/site-library
- /usr/lib/R/site-library
- /usr/lib/R/library
knitr: 1.45
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.