diff --git a/src/gui/src/css/feedback-embed.css b/src/gui/src/css/feedback-embed.css index cc04175ef..032e10619 100644 --- a/src/gui/src/css/feedback-embed.css +++ b/src/gui/src/css/feedback-embed.css @@ -12,4 +12,6 @@ body { /* A scroll over the scrim must not scroll the framing page behind it. */ html { overscroll-behavior: none; + /* Matches the frame's, so it stays transparent and follows the OS theme. */ + color-scheme: light dark; } diff --git a/src/gui/src/feedbackEmbed.browser.test.js b/src/gui/src/feedbackEmbed.browser.test.js index 4301a73da..9fe6bbf58 100644 --- a/src/gui/src/feedbackEmbed.browser.test.js +++ b/src/gui/src/feedbackEmbed.browser.test.js @@ -6,6 +6,7 @@ import { mkdtemp, rm } from 'node:fs/promises'; import { tmpdir } from 'node:os'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; +import { inflateSync } from 'node:zlib'; let browser; let server; @@ -74,7 +75,7 @@ beforeAll(async () => { }); + style="display:block;border:0;width:100vw;height:100vh;color-scheme:light dark">