From 3510a87143a587d125bcfabad31182274e0eee57 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Wed, 12 Jul 2023 09:22:13 -0400 Subject: [PATCH] fix(bs_theme_preview): Don't include dashboard tab for BS < 5 --- inst/themer-demo/app.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/themer-demo/app.R b/inst/themer-demo/app.R index 8e8fdf64e..e535d859c 100644 --- a/inst/themer-demo/app.R +++ b/inst/themer-demo/app.R @@ -65,7 +65,7 @@ progressBar <- div( # This is here for shinycoreci to take advantage of (so we don't need to update a bunch of screenshots) IS_LEGACY <- as.logical(Sys.getenv("BSLIB_LEGACY_THEMER_APP", FALSE)) -if (isTRUE(IS_LEGACY)) { +if (isTRUE(IS_LEGACY) || theme_version(theme) %in% c("3", "4")) { dashboardTab <- NULL } else { dashboardTab <- nav_panel("Dashboard", tipsUI("tips"))