We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5993924 commit 9c8548bCopy full SHA for 9c8548b
dotcom-rendering/src/components/InteractiveBlockComponent.importable.tsx
@@ -346,6 +346,16 @@ export const InteractiveBlockComponent = ({
346
// Datawrapper-specific fix to suppress scrollbars appearing
347
if (url.includes('datawrapper')) {
348
iframe.scrolling = 'no';
349
+ iframe.scrolling = 'no';
350
+ // Turn off dark mode for Datawrapper embeds on web
351
+ // This should be removed if/when dark mode is implements on the website
352
+ if (
353
+ !document.querySelector('.ios') ||
354
+ !document.querySelector('.android')
355
+ ) {
356
+ iframe.src +=
357
+ (iframe.src.includes('?') ? '&' : '?') + 'dark=false';
358
+ }
359
}
360
361
setupWindowListeners(iframe);
0 commit comments