Browse Source

Ensure nav background colour is properly updated when changing theme

master
Andrew Kingston 4 years ago
parent
commit
0f200680be
  1. 4
      packages/builder/src/pages/builder/app/[application]/design/[screenId]/theme/_components/AppThemeSelect.svelte

4
packages/builder/src/pages/builder/app/[application]/design/[screenId]/theme/_components/AppThemeSelect.svelte

@ -16,8 +16,8 @@
try {
const theme = ThemeOptions[e.detail] ?? ThemeOptions[2]
await store.actions.theme.save(theme)
await store.actions.customTheme.save({
...get(store).customTheme,
await store.actions.navigation.save({
...get(store).navigation,
navBackground:
theme === "spectrum--light"
? "var(--spectrum-global-color-gray-50)"

Loading…
Cancel
Save