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
I think adding a light background to svgs for darkmode might be helpful but I am not fully certain if there are downstream effects so making an issue instead of PR
I'm happy to try and test this @brownsarahm at the weekend. A more permanent solution is either:
Inline the SVGs, this allows them to 'see' the selected theme and change colour based on css inside the inlined svg.
Provide an alternate SVG (or png etc) and wrap our images in picture tags. I have a feeling I tried this and couldn't get it to work but I will have another look.
It turns out picture tags will respect a users theme preference but not the bootstrap chosen theme! I haven't tested inline SVGs but I think they will run into the same problem.
I have opened #153, which could use some extra testing, to add support for dark mode images :)
Thanks to @ha0ye via carpentries/instructor-training#1715 (comment)
I think adding a light background to svgs for darkmode might be helpful but I am not fully certain if there are downstream effects so making an issue instead of PR
current:
varnish/source/stylesheets/dark.scss
Lines 43 to 50 in 1f1e219
proposed addition
bright white is probably too far, i picked a balanced gray above but actual specific color should be done with contrast in mind...
The text was updated successfully, but these errors were encountered: