Replies: 1 comment
-
That's a nice Solution @PaulTeco |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a case where I wanted to swap a white colored svg logo during dark mode with the same black colored svg when switching to light mode and all that with a simple approach without too much overhead. I did not find an obvious solution how to do it (I'm sorry if I missed it). To be able to use it more broadly, I ended up implementing a class based approach into the js function given in the bootstrap docs by adding the following function
which would grab all elements with classes 'color-mode-choice' and make all invisible except those which also have the class 'color-mode-THEME-visible' for the current THEME. I understand that color modes is very new, but such a feature would be nice to have out of the box in a future version.
Beta Was this translation helpful? Give feedback.
All reactions