mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-02 02:10:27 +00:00
Fix mobile navigation buttons color
This commit is contained in:
@@ -28,11 +28,13 @@ const DarkMode: FC = ({ children }) => {
|
||||
root.style.setProperty('--background', '#F9F9F9');
|
||||
root.style.setProperty('--secondary-background', 'white');
|
||||
root.style.setProperty('--text', 'black');
|
||||
root.style.setProperty('--text-inverted', 'white');
|
||||
} else {
|
||||
window.localStorage.setItem('theme', 'dark');
|
||||
root.style.setProperty('--background', '#262626');
|
||||
root.style.setProperty('--secondary-background', '#2F2F2F');
|
||||
root.style.setProperty('--text', 'white');
|
||||
root.style.setProperty('--text-inverted', 'black');
|
||||
}
|
||||
|
||||
dispatch({ type: 'TOGGLE' });
|
||||
|
||||
Reference in New Issue
Block a user