Issue Overview
The discussion revolves around fixing light theme images in Dark mode for Modern Category Group Boxes. Danny_Dainton initially reported the issue, where the light theme images were being used in Dark mode, despite having both light and dark versions set in the Category settings.
Investigation and Code Review CocoQuark confirmed the issue and provided relevant code parts from the Discourse Minimal Category Boxes repository. They suggested that the solution would be to fix the theme component by sending a pull request to the code repository.
Workaround and Solution Danny_Dainton asked for steps to apply a workaround for a hosted version of Discourse, and CocoQuark recommended waiting for an official reply or contacting the Discourse team. The issue was eventually fixed by the team, as reported by Danny_Dainton.
Ongoing Issue
However, Heliosurge noted that the fix may not be complete, as the Dark/Light toggle is not being respected, and the component seems to be only respecting the browser’s Dark/Light mode. This issue is similar to one that affected the header logo.
I’m likely just missing some setting or something else trivial so I’m reaching out for some guidance.
I’m using the Modern Category + Group Boxes component on my site and I have themed images created for each of the Categories.
The issue I’m facing is that I have both light and dark versions of the images set in the Category settings but on the main Categories view, it’s using the Light theme ones, while in the Dark theme.
Just to close this out - This was fixed. It was a super quick turnaround by the team.
“Hi Danny, we’ve just made an update to the theme component that will automatically use the correct light/dark logo for the categories. This was a case where the component predated the light/dark logo feature, so we just needed to add support for it.”
May still need a fix as it is not respecting the Dark/light toggle seems to be just respecting browser dark/light mode. Similar issue that was affecting header logo.