diff --git a/public/js/add_content.js b/public/js/add_content.js index f087e6330b5d7755b66ce4734e003226e6a56431..f1dc3465631a0678897adf66b879eea9cc586d29 100644 --- a/public/js/add_content.js +++ b/public/js/add_content.js @@ -226,5 +226,10 @@ function hoverEffect(element, color, textColor) { function changeColor(element, newColor) { element.style.backgroundColor = newColor; - element.style.color = 'white'; + if (newColor === 'white') { + element.style.color = 'lilac'; // Reset background color on image hide + } else { + element.style.color = 'white'; + } + }