bs4Dash icon indicating copy to clipboard operation
bs4Dash copied to clipboard

App Launches Not in Light or Dark Mode But Inbetween

Open ApexHeel opened this issue 2 years ago • 2 comments

Issue: Using the simple example version from the documentation and no further customization, the app launches with the sidebar in dark mode and the body in light mode. Toggling the light/dark mode switch fixes it (body changes to dark, toggle again and both change to light).

Expected behavior: App should launch in light mode not a mix of both.

`library(shiny) library(bs4Dash)

shinyApp( ui = dashboardPage( header = dashboardHeader( title = dashboardBrand( title = "My dashboard", color = "primary", href = "https://adminlte.io/themes/v3", image = "https://adminlte.io/themes/v3/dist/img/AdminLTELogo.png" ) ), sidebar = dashboardSidebar(), body = dashboardBody( lapply(getAdminLTEColors(), function(color) { box(status = color) }) ), controlbar = dashboardControlbar(), title = "DashboardPage" ), server = function(input, output) { } )`

ApexHeel avatar Aug 22 '22 20:08 ApexHeel

Hi. This is the default AdminLTE behavior (also like shinydashboard which does not have dark mode, except through shinydashboardPlus): https://adminlte.io/themes/v3/. I believe this is to provide more contrast with the body. I need to ask the community whether this change is necessary.

DivadNojnarg avatar Aug 25 '22 05:08 DivadNojnarg

My thinking is that since the light/dark toggle is present by default and when you toggle to light all switches to light and vice versa with dark that the default presence of all should not be a mix since you can never get back to that if you ever touch the toggle.

ApexHeel avatar Aug 25 '22 12:08 ApexHeel