From d1f2a819f59a2b942882706aaa69c321119cb73b Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Wed, 19 Jul 2023 13:53:22 +0530 Subject: [PATCH] fix: update border colors on theme switch (#1565) --- apps/app/components/core/theme/theme-switch.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/app/components/core/theme/theme-switch.tsx b/apps/app/components/core/theme/theme-switch.tsx index e514255b0..8929015ee 100644 --- a/apps/app/components/core/theme/theme-switch.tsx +++ b/apps/app/components/core/theme/theme-switch.tsx @@ -80,9 +80,11 @@ export const ThemeSwitch: React.FC = ({ for (let i = 10; i <= 900; i >= 100 ? (i += 100) : (i += 10)) { document.documentElement.style.removeProperty(`--color-background-${i}`); document.documentElement.style.removeProperty(`--color-text-${i}`); + document.documentElement.style.removeProperty(`--color-border-${i}`); document.documentElement.style.removeProperty(`--color-primary-${i}`); document.documentElement.style.removeProperty(`--color-sidebar-background-${i}`); document.documentElement.style.removeProperty(`--color-sidebar-text-${i}`); + document.documentElement.style.removeProperty(`--color-sidebar-border-${i}`); } } setTheme(value);