Skip to content

Commit 9a0bcef

Browse files
committed
Revert "Fix bug: Allow multiple themes e.g., theme: [default, custom.scss]"
This reverts commit 75a4dda.
1 parent 24cf365 commit 9a0bcef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/ui.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ sd_ui <- function() {
5555

5656
theme <- get_theme(metadata)
5757
default_theme <- FALSE
58-
if ("default" %in% theme) {
58+
if (any(theme == "default")) {
5959
default_theme <- TRUE
6060
}
6161
barcolor <- get_barcolor(metadata)
@@ -504,7 +504,7 @@ render_survey_qmd <- function(paths, default_theme = TRUE, theme = NULL) {
504504

505505
# Add theme to render_metadata if provided
506506
# This allows themes defined under theme-settings to be applied by Quarto
507-
if (!is.null(theme) && !all(theme == "default")) {
507+
if (!is.null(theme) && theme != "default") {
508508
render_metadata$theme <- theme
509509
}
510510

0 commit comments

Comments
 (0)