Skip to content

Commit

Permalink
DON-877: Make "You are now registered" copy aria-live
Browse files Browse the repository at this point in the history
Screen readers should naw automatically read the text
"You are now registered. You can now donate faster using your chosen email address and password. "
when it appears, instead of waiting for the user to navigate to it.
  • Loading branch information
bdsl committed Nov 2, 2023
1 parent 7f1593f commit 3af008b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/donation-complete/donation-complete.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ <h2>Thank you!</h2>
<p>This helps you to make doubling your donation easier.</p>
</div>

<div aria-live="polite">
<p *ngIf="registrationComplete" id="registrationCompleteText">
<strong>You are now registered<span *ngIf="loggedIn"> and logged in</span>.</strong> You can now donate faster
using your chosen email address and password.
</p>
</div>

<div class="cta" *ngIf="registrationComplete && loggedIn">
<div class="button-wrapper">
Expand Down

0 comments on commit 3af008b

Please sign in to comment.