Ensure nav background colour is properly updated when changing theme

This commit is contained in:
Andrew Kingston 2022-05-10 16:30:13 +01:00
parent 4c90de8498
commit b88f6ff702
1 changed files with 2 additions and 2 deletions

View File

@ -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)"