We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0602521 commit 12007b9Copy full SHA for 12007b9
docs/content/docs/themes.md
@@ -83,9 +83,7 @@ Here's a callback to change the theme:
83
clientside_callback(
84
" " "
85
(switchOn) => {
86
- switchOn
87
- ? document.documentElement.setAttribute('data-bs-theme', 'light')
88
- : document.documentElement.setAttribute('data-bs-theme', 'dark')
+ document.documentElement.setAttribute("data-bs-theme", switchOn ? "light" : "dark");
89
return window.dash_clientside.no_update
90
}
91
" " ",
0 commit comments