Skip to content

Support dark theme on info iframe#1965

Open
cees-wolfs-vt wants to merge 1 commit into
mainfrom
1963-dwo-1309-more-info-sidepanel-should-have-dark-mode
Open

Support dark theme on info iframe#1965
cees-wolfs-vt wants to merge 1 commit into
mainfrom
1963-dwo-1309-more-info-sidepanel-should-have-dark-mode

Conversation

@cees-wolfs-vt

@cees-wolfs-vt cees-wolfs-vt commented May 1, 2026

Copy link
Copy Markdown
Collaborator

To get this to work, info html need the following to be included

<script> window.addEventListener("message", (event) => { if (event.data?.type === "FEWS_WEB_OC:SET_THEME") { document.documentElement.classList.toggle("dark", event.data.theme === "dark"); event.source.postMessage({ type: "FEWS_WEB_OC:THEME_BLACK" }, event.origin); } }); </script>

@cees-wolfs-vt cees-wolfs-vt requested a review from wkramer May 1, 2026 07:42
@cees-wolfs-vt cees-wolfs-vt added the DWO Corresponds to a JIRA issue label May 1, 2026
@cees-wolfs-vt cees-wolfs-vt linked an issue May 1, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DWO Corresponds to a JIRA issue rel: improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DWO-1309: More info sidepanel should have dark mode

1 participant