From 3847f415d65683bab8eb80071356261bfc1c1114 Mon Sep 17 00:00:00 2001
From: Richard Bergsma
Date: Tue, 24 Jun 2025 21:05:49 +0200
Subject: [PATCH] Enhance accessibility and structure across multiple
components
- Updated the ContactForm component to include labels and aria-describedby attributes for better accessibility.
- Improved the Button component by conditionally adding aria-labels based on text input.
- Enhanced the Form component with aria-describedby attributes for validation feedback.
- Refactored the Layout component to include semantic HTML5 elements for better structure and accessibility.
- Updated the 404 page metadata for improved SEO and user experience.
---
src/components/ContactForm.astro | 16 ++++++++++++----
src/components/ui/Button.astro | 5 ++++-
src/components/ui/Form.astro | 9 ++++++---
src/layouts/Layout.astro | 16 +++++++++++++---
src/pages/404.astro | 8 ++++++--
5 files changed, 41 insertions(+), 13 deletions(-)
diff --git a/src/components/ContactForm.astro b/src/components/ContactForm.astro
index 0108c6a..0468e0e 100644
--- a/src/components/ContactForm.astro
+++ b/src/components/ContactForm.astro
@@ -1,6 +1,10 @@
@@ -10,8 +14,12 @@
If you believe this is a mistake, you can request a manual review.