mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
fix(ui): fix undefined dark-primary-color bug (#876)
fix undefined dark-primary-color bug
This commit is contained in:
parent
0f2827ccb8
commit
542d878231
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue