Feat/21 keyboard accessibility - #242
Open
MUFTIATBAKARE wants to merge 9 commits into
Open
Conversation
|
@MUFTIATBAKARE 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! 🚀 |
resolve conflicts
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.
What does this PR do?
Improve keyboard accessibility and focus management across the verification and protocol flows to provide a better experience for keyboard and assistive technology users.
Closes #21
Type of change
Files changed
frontend/app/verify/page.tsx — add tabIndex, onKeyDown to credential type cards
frontend/app/holder/page.tsx — useRef + focus() on result after proof generation
frontend/app/apps/page.tsx — add tabIndex={0} and onKeyDown to protocol cards
frontend/app/globals.css — ensure :focus-visible ring is visible using var(--accent)
Checklist
Greptile Summary
This PR adds keyboard accessibility across the verify, holder, and apps flows: interactive cards gain
tabIndex={0}andonKeyDownEnter/Space handlers, and a global:focus-visiblerule provides a visible accent-coloured outline. The most substantive addition is programmatic focus management inProofFlowandBatchProofFlow, whereuseRef/useEffectpairs move focus to the submit button, success banner, or error banner as each proof stage completes.holder/page.tsx: Three new refs plus stage-drivenuseEffecthooks focus the next actionable or result element automatically.verify/page.tsx/apps/page.tsx: Cards are now Tab-reachable and activatable via Enter/Space; the verify cards still lack ARIAroleandaria-checked(flagged in a prior review).globals.css: Clean:focus-visiblerule with no animation delay.Confidence Score: 4/5
The changes are purely additive accessibility enhancements with no risk to existing functionality, but the credential selector cards in the verify flow lack ARIA semantics needed to complete the accessibility story.
The credential type selector cards in frontend/app/verify/page.tsx received tabIndex and onKeyDown but no role or aria-checked, so a screen reader user gets keyboard reachability with no semantic context. This was flagged in a prior review and remains unresolved. The focus management additions to ProofFlow and BatchProofFlow are well-structured and correct.
Files Needing Attention: frontend/app/verify/page.tsx - credential selector cards need ARIA role and state; frontend/app/holder/page.tsx - minor formatting issues in the BatchProofFlow focus effect.
Important Files Changed
Sequence Diagram
Reviews (6): Last reviewed commit: "feat- keyboard accessibility" | Re-trigger Greptile