From 39ce3c7faa2e9de3789c7c6b3f474d019487fd1b Mon Sep 17 00:00:00 2001 From: Traboulsi <salam.traboulsi@hft-stuttgart.de> Date: Fri, 29 Dec 2023 08:10:30 +0000 Subject: [PATCH] Update public/js/add_content.js --- public/js/add_content.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/js/add_content.js b/public/js/add_content.js index f087e63..f1dc346 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'; + } + } -- GitLab