Skip to content

fix(a11y): improve color contrast and add aria-labels for WCAG AA - #34

Open
rafaumeu wants to merge 1 commit into
Adventech:stagefrom
rafaumeu:fix/a11y-contrast-and-aria-labels
Open

fix(a11y): improve color contrast and add aria-labels for WCAG AA#34
rafaumeu wants to merge 1 commit into
Adventech:stagefrom
rafaumeu:fix/a11y-contrast-and-aria-labels

Conversation

@rafaumeu

Copy link
Copy Markdown

Summary

Fixes two accessibility issues identified in #21 and #22.

Color Contrast (resolves #22)

  • Replaced text-gray-400 (#9ca3af, contrast 3.0:1 on white) with text-gray-500 (#6b7280, contrast 5.6:1) across 21 files
  • Dark-theme instances (theme-dark:text-gray-400) left unchanged - appropriate contrast on dark backgrounds
  • Also updated theme-sepia: and hover: variants consistently

Accessible Link Names (closes #21)

  • Added aria-label="Alive in Jesus home" to icon-only logo links in 4 AIJ header components (Beginner, Primary, Babies, Kindergarten)
  • Added aria-hidden="true" to decorative SDALogoAIJ SVG elements in those same headers

Files changed

  • 25 files, 49 insertions, 49 deletions

Testing

  • Visual inspection: color change is subtle (#9ca3af to #6b7280), does not alter design intent
  • WCAG AA compliance: all affected text now meets 4.5:1 contrast ratio on white background
  • Screen readers: AIJ logo links now announce purpose instead of being silent

…pliance

Replace text-gray-400 with text-gray-500 across 21 files for sufficient
contrast ratio on white backgrounds (3.0:1 → 5.6:1).

Add aria-label to icon-only AIJ logo links in 4 header components.
Add aria-hidden to decorative SDALogoAIJ SVG elements.

Resolves Adventech#22
Closes Adventech#21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A11y: Insufficient color contrast for text elements A11y: Links missing accessible names

1 participant