From c62cd9898a95e195671f911c603c408b30a6fd3a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 30 Mar 2022 12:08:02 -0500 Subject: [PATCH] Fix background shapes for dark mode --- app/soapbox/features/ui/components/background_shapes.js | 6 +++--- app/soapbox/normalizers/soapbox/soapbox_config.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/soapbox/features/ui/components/background_shapes.js b/app/soapbox/features/ui/components/background_shapes.js index 586e9e772..efb7f846c 100644 --- a/app/soapbox/features/ui/components/background_shapes.js +++ b/app/soapbox/features/ui/components/background_shapes.js @@ -13,13 +13,13 @@ export default () => ( - + - - + + diff --git a/app/soapbox/normalizers/soapbox/soapbox_config.ts b/app/soapbox/normalizers/soapbox/soapbox_config.ts index 3d0658851..ef28788d4 100644 --- a/app/soapbox/normalizers/soapbox/soapbox_config.ts +++ b/app/soapbox/normalizers/soapbox/soapbox_config.ts @@ -150,12 +150,12 @@ const normalizeColors = (soapboxConfig: SoapboxConfigMap): SoapboxConfigMap => { const maybeAddMissingColors = (soapboxConfig: SoapboxConfigMap): SoapboxConfigMap => { const colors = soapboxConfig.get('colors'); - const missing = { + const missing = ImmutableMap({ 'bg-shape-1': colors.getIn(['accent', '50']), 'bg-shape-2': colors.getIn(['primary', '500']), - }; + }); - return soapboxConfig.set('colors', colors.mergeDeep(missing)); + return soapboxConfig.set('colors', missing.mergeDeep(colors)); }; export const normalizeSoapboxConfig = (soapboxConfig: Record) => {