mirror of
https://github.com/hkalexling/Mango.git
synced 2026-05-01 00:00:55 -04:00
Fix modal and dropdown colors in dark mode
and get rid of the hacky `styleModal` function
This commit is contained in:
@@ -53,13 +53,6 @@ const setTheme = (theme) => {
|
||||
}
|
||||
};
|
||||
|
||||
const styleModal = () => {
|
||||
const color = loadTheme() === 'dark' ? '#222' : '';
|
||||
$('.uk-modal-header').css('background', color);
|
||||
$('.uk-modal-body').css('background', color);
|
||||
$('.uk-modal-footer').css('background', color);
|
||||
};
|
||||
|
||||
// do it before document is ready to prevent the initial flash of white on
|
||||
// most pages
|
||||
setTheme();
|
||||
|
||||
Reference in New Issue
Block a user