diff --git a/script.js b/script.js index feaadf8..d0ea110 100644 --- a/script.js +++ b/script.js @@ -15,6 +15,9 @@ function updateBackground() { isWarranty.nextElementSibling.style.backgroundColor = isWarranty.checked ? "red" : "transparent"; + isWarranty.nextElementSibling.style.color = isWarranty.checked + ? "white" + : "black"; } // Notification system