Fix modal and dropdown colors in dark mode

and get rid of the hacky `styleModal` function
This commit is contained in:
Alex Ling
2020-07-22 12:06:29 +00:00
parent a994c43857
commit 6c2350c9c7
5 changed files with 38 additions and 26 deletions
-7
View File
@@ -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();