Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions dotcom-rendering/src/server/render.article.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ window.twttr = (function(d, s, id) {
}(document, "script", "twitter-wjs"));
</script>`;

const { canonicalUrl } = frontendData;
const { canonicalUrl, webPublicationDate } = frontendData;

// Interactive dark mode support launched with full DCAR on June 25th 2025
const isBeforeInteractiveDarkModeSupportLaunch =
Date.parse(webPublicationDate) < Date.parse('2025-07-01T00:00:00Z');

const pageHtml = htmlPageTemplate({
linkedData,
Expand All @@ -189,7 +193,8 @@ window.twttr = (function(d, s, id) {
hasSurveyAd: !!frontendData.config.hasSurveyAd,
onlyLightColourScheme:
design === ArticleDesign.FullPageInteractive ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A quick question(s) for my understanding: are full page interactives not currently built with dark mode support? And is that a current limitation of the platform, or is it just not a design consideration at the moment?

design === ArticleDesign.Interactive,
(design === ArticleDesign.Interactive &&
isBeforeInteractiveDarkModeSupportLaunch),
});

return { html: pageHtml, prefetchScripts };
Expand Down
Loading