From 010845611d793c8ef6d87eae0e728a72cb9c5067 Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 28 Mar 2024 09:20:53 +0100 Subject: [PATCH] feat: implement dynamic error box visibility Introduced a `.hidden` CSS class to control the visibility of elements and initially applied it to the error box, making it hidden by default. JavaScript logic was added to remove this class dynamically, allowing for the error box to be shown conditionally based on specific criteria. This change enhances user experience by preventing immediate display of error messages on page load, instead allowing for dynamic visibility control based on application state or user actions. --- index.css | 3 +++ index.html | 6 +++--- src/index.js | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/index.css b/index.css index 303f35f..3677714 100644 --- a/index.css +++ b/index.css @@ -18,4 +18,7 @@ body { font-size: 2em; margin: 0; color: red; +} +.hidden { + display: none; } \ No newline at end of file diff --git a/index.html b/index.html index de22405..62fd614 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ /> -
+