Skip to content
Discussion options

You must be logged in to vote

The grey bands don't come from your app or from the Shiny theme.

They come from a default in Reveal.js.
In slides, Quarto adds line numbers to code blocks.
That setting also applies to your shinylive-r block, so Quarto wraps it in a grey code box.
When the app loads, shinylive replaces the code inside that box, but the grey box itself stays behind.
The empty space above and below the app is the grey box showing through.

The HTML format doesn't add line numbers, so there's no grey box there.

You can turn line numbers off for the presentation:

---
format:
  revealjs:
    code-line-numbers: false
    resources:
      - shinylive-sw.js
filters:
  - shinylive
---

With that setting, the app in …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by richardjtelford
Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
revealjs Issues with the revealjs format html Issues with HTML and related web technology (html/css/scss/js) themes Related to HTML theming or any other style related issue (like highlight-style) shiny Related to shiny integration for interactive document
2 participants