You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the suggestion and those examples. I have to admit, I don't know enough about bs4Dash to provide a good answer on how to do this (and don't have time to research right now), but agree that it would be great to make dynamic dark mode toggles easy to integrate with reactable. Maybe it's time to revisit bslib integration (#96), if bs4Dash does use bslib.
From a quick look at that example app, I do see that bs4Dash sets a top-level .dark-mode class when dark mode is toggled. If that's a publicly documented class, then you could use reactableTheme()'s nested selectors feature to conditionally style the table's text color and background color when dark mode is activated. There's an example of this at Theming - Nested selectors, and here's the example app modified to do the same:
Please have a look at the following examples:
Example 1: In dark-mode font color changes to white and becomes unreadable because of the white background.
Example 2: Setting background to
"transparent"
solves the dark-mode readability issue but create issues with sticky columns.As imho the package
bs4Dash
is becoming popular it would be a nice feature to have a built-in dark-mode functionality.The text was updated successfully, but these errors were encountered: