feat(frontend): improve screen reader support and enable optimistic u…#995
Merged
emdevelopa merged 1 commit intoJun 24, 2026
Conversation
…pdates for PaymentSuccessAnimation - emdevelopa#980: Add useReducedMotion support — skips confetti and uses fade-only animation variants when the OS reduce-motion preference is active - emdevelopa#980: Add dynamic polite live region (data-testid=sr-announcement) that announces network confirmation when isOptimistic transitions from true to false - emdevelopa#981: Async handleDismiss with optimistic UI — Continue/Close buttons immediately show a loading spinner and aria-busy=true, then roll back (re-enable buttons + announce error) if onComplete rejects - emdevelopa#981: Escape key now routes through handleDismiss for consistent behavior - Add framer-motion mock (vi.hoisted + mkMotion helper) and comprehensive tests covering reduced-motion, pending state, rollback, and SR announcements Closes emdevelopa#980 Closes emdevelopa#981
|
@Ibk-Bless is attempting to deploy a commit to the Emmanuel's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Ibk-Bless 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! 🚀 |
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.
Add useReducedMotion support — skips confetti and uses fade-only animation variants when the OS reduce-motion preference is active
Add dynamic polite live region (data-testid=sr-announcement) that announces network confirmation when isOptimistic transitions from true to false
Async handleDismiss with optimistic UI — Continue/Close buttons immediately show a loading spinner and aria-busy=true, then roll back (re-enable buttons + announce error) if onComplete rejects
Escape key now routes through handleDismiss for consistent behavior
Closes #980
Closes #981
Closes #982
Closes #983