From ce25ba70df5e3f045a7f31f1d5c93ec294f11ec0 Mon Sep 17 00:00:00 2001 From: Chhavi Mishra Date: Fri, 5 Jun 2026 10:58:15 +0530 Subject: [PATCH] feat(a11y): add keyboard navigation support - autoFocus on GitHub Username input on page load - Escape key clears username input and returns focus - focus-visible ring on all navbar buttons - focus-visible ring on Hero CTA link - Global :focus-visible CSS for consistent focus indicators - aria-labels on Tabs for screen reader support Closes #631 --- src/components/Hero.tsx | 2 +- src/components/Navbar.tsx | 6 +++--- src/index.css | 10 ++++++++++ src/pages/Tracker/Tracker.tsx | 19 ++++++++++++++++--- 4 files changed, 30 insertions(+), 7 deletions(-) diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx index a606d777..46a05b59 100644 --- a/src/components/Hero.tsx +++ b/src/components/Hero.tsx @@ -34,7 +34,7 @@ const Hero = () => {
{/* Interactive Primary Link Button */} - + Start Tracking diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index fd5eac86..881028f1 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -60,7 +60,7 @@ const Navbar: React.FC = () => { {/* Theme Toggle */}