Skip to content

Commit

Permalink
fix(project): fix backgroundColor option not working
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Jun 24, 2021
1 parent ab37b6b commit f0503d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/ConfigProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const ConfigProvider: FunctionComponent<ProviderProps> = ({
const root = document.querySelector(':root') as HTMLElement;

if (root && backgroundColor) {
root.style.setProperty('--background-color', backgroundColor);
root.style.setProperty('--body-background-color', backgroundColor);
root.style.setProperty('--background-contrast-color', calculateContrastColor(backgroundColor));
}

Expand Down

0 comments on commit f0503d8

Please sign in to comment.