fix: update border colors on theme switch (#1565)
This commit is contained in:
parent
a42bff675b
commit
d1f2a819f5
1 changed files with 2 additions and 0 deletions
|
|
@ -80,9 +80,11 @@ export const ThemeSwitch: React.FC<Props> = ({
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue