-
- Downloads
fix(sdk): Fix unmapped theme colors (#46650)
* Refactor * Fix wrong colors when passing empty SDK `colors` * Clean up CSS custom properties * Add missing color mapping to the SDK * Add missing colors to the main app * Only override additional dynamic colors when values are passed * Fix unit tests * Address review Co-authored-by:Phoomparin Mano <poom@metabase.com> --------- Co-authored-by:
Phoomparin Mano <poom@metabase.com>
Showing
- enterprise/frontend/src/embedding-sdk/components/private/SdkThemeProvider.tsx 2 additions, 2 deletions...src/embedding-sdk/components/private/SdkThemeProvider.tsx
- enterprise/frontend/src/embedding-sdk/lib/theme/embedding-color-palette.ts 40 additions, 22 deletions...nd/src/embedding-sdk/lib/theme/embedding-color-palette.ts
- enterprise/frontend/src/embedding-sdk/lib/theme/get-embedding-theme.ts 4 additions, 2 deletions...ontend/src/embedding-sdk/lib/theme/get-embedding-theme.ts
- enterprise/frontend/src/embedding-sdk/lib/theme/get-embedding-theme.unit.spec.ts 2 additions, 0 deletions.../embedding-sdk/lib/theme/get-embedding-theme.unit.spec.ts
- frontend/src/metabase/css/core/colors.module.css 32 additions, 2 deletionsfrontend/src/metabase/css/core/colors.module.css
- frontend/src/metabase/styled-components/theme/css-variables.ts 43 additions, 62 deletions...end/src/metabase/styled-components/theme/css-variables.ts
Please register or sign in to comment