feat(frontend): Accessibility audit - WCAG 2.1 AA compliance#722
Merged
Conversation
Contributor
|
Fix merge conflict and dont forget to Offramp your USDC on https://fundable.finance when you receive your rewards |
|
@Uche44 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
Author
|
@Idrhas I've fixed it. Please merge so I get my points |
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.
Summary
This PR resolves accessibility violations across the FarmCredit application by implementing WCAG 2.1 AA compliant keyboard navigation, color contrast, focus management, and ARIA markup. Key fixes include establishing an accessible primary foreground color in the light theme, implementing focus trapping/restoration in interactive overlays, and standardizing semantic markup across tables, buttons, and navigation elements.
Related Issue
Closes #540
What Was Implemented
--primary-foregroundfrom#ffffffto#0d0b21(stellar-navy) to achieve an 8.27:1 contrast ratio on primary buttons, and increased--muted-foregroundcontrast to 6.14:1.text-stellar-navyon green background buttons to ensure readable 4.5:1+ contrast.#main-contentat the body root inlayout.tsxand wrapped pages in<main id="main-content">wrappers.OnboardingTourmodal overlay.:focus-withinstyles to render outline rings correctly during keyboard-only navigation.scope="col"andscope="row") to tables in the project view and order history pages.role="status"andaria-live="polite".aria-hidden="true"to SVG graphics inside social icons in the footer.WalletProviderto ensure static page builds (such as/leaderboard) compile successfully without context mismatch errors.Implementation Details
globals.cssto seamlessly adjust color contrast across the entire app layout without needing individual inline styles.querySelectorAllfor focusable elements) inside the keydown listener ofOnboardingTourto trap focus cleanly without bloated package dependencies.<input type="file" className="sr-only">inside the<label>button-styled trigger, using CSS:focus-withinselectors to style focus rings automatically.Screenshots / Recordings
(Please capture local browser screenshots/recordings of the skip-link, focus outline, and success button contrast to insert here.)
How to Test