0
Fork 0
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:
simeng-li 2022-05-18 18:06:30 +08:00 committed by GitHub
parent 0f2827ccb8
commit 542d878231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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