diff --git a/superset-embedded-sdk/src/index.ts b/superset-embedded-sdk/src/index.ts index 419ed2526ec..e732a36c22f 100644 --- a/superset-embedded-sdk/src/index.ts +++ b/superset-embedded-sdk/src/index.ts @@ -232,6 +232,7 @@ export async function embedDashboard({ }); iframe.src = `${supersetDomain}/embedded/${id}${urlParamsString}`; iframe.title = iframeTitle; + iframe.style.background = 'transparent'; if (iframeAllowExtras.length > 0) { iframe.setAttribute('allow', iframeAllowExtras.join('; ')); } diff --git a/superset/templates/superset/spa.html b/superset/templates/superset/spa.html index 8ca114b3cf3..40f5af6f34f 100644 --- a/superset/templates/superset/spa.html +++ b/superset/templates/superset/spa.html @@ -35,19 +35,35 @@ {% endblock %} + {% if dark_theme_bg and entry != 'embedded' %} + + {% endif %} + {% block head_css %} {% for favicon in favicons %}