The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
fix proper bg color for embedded dashboards with custom theme (#68539)
Sébastien95a25e4a3edb
diff --git a/frontend/src/metabase/dashboard/components/Dashboard/Dashboard.module.css b/frontend/src/metabase/dashboard/components/Dashboard/Dashboard.module.cssindex 4cd94a1061c..0e34ff64b9d 100644--- a/frontend/src/metabase/dashboard/components/Dashboard/Dashboard.module.css+++ b/frontend/src/metabase/dashboard/components/Dashboard/Dashboard.module.css@@ -2,6 +2,10 @@flex: 1 0 auto;background-color: var(--mb-color-background-secondary);+ &.isEmbeddingSdk {+ background-color: var(--mb-color-bg-dashboard);+ }+&.isEditingOrSharing {flex-basis: 0;}diff --git a/frontend/src/metabase/dashboard/components/Dashboard/Dashboard.tsx b/frontend/src/metabase/dashboard/components/Dashboard/Dashboard.tsxindex 3472989ecb0..79ff7acbcf9 100644--- a/frontend/src/metabase/dashboard/components/Dashboard/Dashboard.tsx+++ b/frontend/src/metabase/dashboard/components/Dashboard/Dashboard.tsx@@ -104,6 +104,7 @@ const DashboardDefaultView = ({ className }: { className?: string }) => {mih={0}className={cx(S.DashboardBody, {[S.isEditingOrSharing]: isEditing || isSharing,+ [S.isEmbeddingSdk]: isEmbeddingSdk,})}><Box