Skip to content

Commit

Permalink
fix(ui): fix undefined dark-primary-color bug (#876)
Browse files Browse the repository at this point in the history
fix undefined dark-primary-color bug
  • Loading branch information
simeng-li authored May 18, 2022
1 parent 0f2827c commit 542d878
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ui/src/components/AppContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ const AppContent = ({ children, mode, platform: platformOverwrite }: Props) => {
} = experienceSettings;

document.documentElement.style.setProperty('--light-primary-color', primaryColor);
document.documentElement.style.setProperty('--dark-primary-color', darkPrimaryColor);
document.documentElement.style.setProperty(
'--dark-primary-color',
darkPrimaryColor ?? primaryColor
);
}, [experienceSettings]);

// Set Platform
Expand Down

0 comments on commit 542d878

Please sign in to comment.