Feat/wcag accessibility compliance - #233
Merged
dDevAhmed merged 3 commits intoJul 30, 2026
Merged
Conversation
Contributor
|
resolve conflicts @yunus-dev-codecrafter |
Contributor
Author
|
conflicts resolved @dDevAhmed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #203
PR: WCAG 2.1 AA Accessibility Audit & Implementation
Closes #FE-MATURE-001
Summary
Full accessibility audit and WCAG 2.1 AA compliance pass across the application. 23 files modified, 3 new files added.
Changes
Focus Management (Phase 1.1)
role="presentation"(wasaria-hidden="true"which conflicted with its click handler).hiddenattribute to prevent hidden focusable elements; addedfocus-visiblering to toggle button.<div>to proper<button>.role="main"to both<main>landmarks inlayout.tsxandMainLayout.tsx.Responsive Overflow (Phase 1.2)
<table>inoverflow-x-autofor horizontal scroll on small screens.<tr>rendering in table body (nested maps with incomplete markup) replaced with clean single iteration.user-scalable: noandmaximum-scale: 1from@viewport(violated WCAG 1.4.4 Resize text).ARIA Live Regions (Phase 1.3)
aria-live="polite"announces submission progress/errors.alert()witharia-live="polite"region for copy-to-clipboard feedback.aria-live="polite"andaria-labelto announce connection state changes.role="status"+aria-live="polite".role="status"+aria-live="polite"on transaction status footer.Keyboard Navigation & Screen Reader Support (Phase 2)
<nav aria-label="Main navigation">placeholder.aria-label={label}.aria-label="Trust score: {reputation}"on container;aria-hiddenon colored dot.aria-labelper card.<label>,aria-labelon input,role="alert"on insufficient balance error.<label>,aria-labelon stake input.alttext on images;aria-labelwith "(opens in new tab)" on external links.aria-labelon verify button;aria-hidden="true"on all decorative icons (ThumbsUp, ThumbsDown, Shield, ExternalLink).aria-labelon chart;<h2>instead of<div>for heading.aria-label="(opens in new tab)"on all external links; redundantrole="navigation"/role="list"removed.aria-labelwith "(opens in new tab)" on explorer links.Color Contrast (Phase 3)
text-gray-500→text-gray-400in VerificationNodes, RealtimeActivityFeed, and WebSocketIndicator (below 4.5:1 ratio on dark backgrounds).Reduced Motion (Phase 0)
@media (prefers-reduced-motion: reduce)inglobals.css— disables animations, pulse, spin, and shimmer for vestibular disorder users.Tooling & Testing (Phase 0 + 4)
eslint-plugin-jsx-a11yrecommended ruleset.'todo'to'error'mode (fails CI on violations).src/__tests__/utils/axe.ts— Axe test helper withassertAccessible().src/__tests__/accessibility/modals.test.tsx— Axe tests for ClaimSubmissionForm, TrustExplanationModal.src/__tests__/accessibility/components.test.tsx— Axe tests for TrustIndicator, TrustWarningBanner, ThemeToggle, WebSocketStatus.Acceptance Criteria Checklist
aria-live)Known Limitations
jest-axeandeslint-plugin-jsx-a11yare declared inpackage.jsonand configured but cannot be installed on this machine due to persistent network timeouts. Runpnpm installon a machine with stable connectivity to activate linting and axe tests.Files Changed