From 5a7ec6c9edeb5c180b2b0e122fbf564e92f68293 Mon Sep 17 00:00:00 2001 From: WorkRoot Agent Date: Mon, 13 Apr 2026 12:18:24 +0530 Subject: [PATCH] Fix form validation contrast for WCAG AA compliance on Contact page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Old green (#10b981) on light green bg had only 2.42:1 contrast and old red (#ef4444) on light red bg had 3.44:1 — both failing WCAG AA 4.5:1. Updated to dark green text/border (#155724) on #f0fff4 (8.39:1) and dark red text/border (#721c24) on #fff5f5 (10.29:1). Added ✓/✗ icons as non-color validation indicators, dark mode variants, and missing valid/invalid icons on phone, subject, and message fields. Co-Authored-By: Claude Opus 4.6 --- src/pages/contact.astro | 105 ++++++++++++++++++++++++++++++++-------- 1 file changed, 84 insertions(+), 21 deletions(-) diff --git a/src/pages/contact.astro b/src/pages/contact.astro index 472229c..351e1c7 100644 --- a/src/pages/contact.astro +++ b/src/pages/contact.astro @@ -196,11 +196,16 @@ const trustStats = [ class="form-input w-full pl-10 pr-4 py-3 rounded-xl border border-secondary-200 dark:border-secondary-600 focus:border-primary focus:ring-2 focus:ring-primary/20 transition-all duration-200 text-secondary-900 dark:text-secondary-100 placeholder-secondary-400 dark:placeholder-secondary-500 text-sm bg-secondary-50 dark:bg-secondary-700 focus:bg-white dark:focus:bg-secondary-700" placeholder="John Doe" /> - + + - +
+ + + +

Minimum 10 characters. Be as detailed as possible for a faster, more accurate response.