fandom.com dark theme not applied automatically
Categories
(Web Compatibility :: Site Reports, defect)
Tracking
(Not tracked)
People
(Reporter: 08xjcec48, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
Steps to reproduce:
Go to about:preferences#general
and set Website appearance
to Dark
.
Actual results:
Fandom pages like https://bomberman.fandom.com/wiki/Super_Bomberman_4 load in light mode.
You have to manually click on the icon at the top right corner of the page to enable the dark theme, which sets a simple cookie. Users who have configured Firefox to delete cookies automatically have to keep doing this again every day they open a Fandom site.
Expected results:
If a user has checked Website appearance
→ Dark
, Firefox should enable the dark theme by setting that cookie automatically, or reach out to Fandom to ask it to respect prefers-color-scheme
.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Networking: Cookies' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
Yeah, I think realistically messing with the site cookies is not something we'll do just for theming purposes. We should ask fandom to respect prefers-color-scheme
by default... Dennis, do you know if we have contacts at Fandom? I see a contact form, but they don't have any bug report category or anything, seems more targeted to sales...
Comment 3•2 years ago
|
||
We don't have any direct contact. However, their support form allows sending a "bug report" without requiring an account or anything. I submitted ticket #1222725, suggesting them to respect prefers-color-scheme
. I'll update this bug if there is a substantial response!
Updated•2 years ago
|
Comment 4•2 years ago
|
||
They got back to me, saying
We allow the leaders of a wiki to specify whether light or dark should be default, based on the community needs. This means we aren't really set up to follow the browser setting - but it's something we can consider for the future (e.g. perhaps by allowing admins to pick "allow browser to choose").
So this seems to be a WONTFIX from our perspective, as there is nothing to do here, and the current behavior is intentional.
Thank you for contacting them.
Fortunately, we can force Firefox to use the dark theme for all Fandom wikis with a simple URL hack. I've created this Request Control rule for this:
[
{
"uuid": "fandom-dark-theme",
"pattern": {
"scheme": "*",
"host": [
"*.fandom.com"
],
"path": [
"wikia.php?controller=ThemeApi*"
],
"excludes": [
"variant=dark"
]
},
"types": [
"stylesheet"
],
"action": "redirect",
"active": true,
"title": "Dark%3A%20Fandom",
"redirectUrl": "{href/(.*)/$1&variant=dark}"
}
]
Description
•