From 0ff867b3f811384fbf8b8e83dfba1e6e8afbb066 Mon Sep 17 00:00:00 2001 From: Your Actual Name Date: Fri, 22 May 2026 14:05:50 +0530 Subject: [PATCH] fix: add id/name attributes and labels to form fields for accessibility (#388) --- src/components/Footer.tsx | 41 ++++++++++++++++++++--------------- src/pages/Contact/Contact.tsx | 14 +++++++++++- src/pages/Login/Login.tsx | 4 ++++ src/pages/Signup/Signup.tsx | 36 ++++++++++++++++++++++++++---- src/pages/Tracker/Tracker.tsx | 5 ++++- 5 files changed, 76 insertions(+), 24 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 411bf2f..4c5da37 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -93,24 +93,29 @@ function Footer() { onSubmit={handleSubscribe} className="flex flex-col sm:flex-row items-stretch gap-2" > - setEmail(e.target.value)} - className=" - flex-grow text-sm px-4 py-3 - bg-zinc-50 dark:bg-zinc-800/40 - border border-zinc-200 dark:border-zinc-700/50 - rounded-xl - focus:outline-none focus:ring-2 - focus:ring-blue-500/20 focus:border-blue-500 - text-zinc-900 dark:text-white - placeholder-zinc-400 dark:placeholder-zinc-500 - transition-all - " - /> +
+ + setEmail(e.target.value)} + className=" + w-full text-sm px-4 py-3 + bg-zinc-50 dark:bg-zinc-800/40 + border border-zinc-200 dark:border-zinc-700/50 + rounded-xl + focus:outline-none focus:ring-2 + focus:ring-blue-500/20 focus:border-blue-500 + text-zinc-900 dark:text-white + placeholder-zinc-400 dark:placeholder-zinc-500 + transition-all + " + /> +