-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Automatic dark theme doesn't work #63830
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Requested in #61079 and implemented in #61236, the automatic theme switching doesn't seem to do anything: If I visit https://doc.rust-lang.org/nightly/std/ while the system is in dark mode, I can see in the developer tools that the
<html>element has the stylecontent: "dark";, but the page is still showing as the light theme. Local storage is empty for doc.rust-lang.org, and the issue affects private windows as well.Tested on:
cc @GuillaumeGomez