Skip to content

Improve toast annoucnements for AT #1422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

amy-corson-ibigroup
Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup commented Jun 19, 2025

Description:
Adds "alert" to default settings to more consistently force toast to announce to AT.

Previously "create account complete" announcement upon exiting the wizard was not being announced because the URL/Page title changing was higher priority. Ensuring both announcements were read properly was requiring a complex set of fake Promises, setTimeouts and aria settings. That toast is not actually needed, as all the changes were already saved. Instead, replace the toast with the a message on the "Account Complete" screen that informs users changes were saved and that clicking the "finish" button will redirect them.

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

@@ -93,17 +93,6 @@ class Wizard extends Component<Props> {
this._routeTo(nextId)
}
} else {
// Display a toast to acknowledge saved changes
// (although in reality, changes quietly took effect in previous screens).
toastPromise(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also remove the imports of '../util/toasts' that are now unused.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, thank you!

@@ -169,7 +169,9 @@ components:
A11yPrefs:
accessibilityRoutingByDefault: Prefer accessible trips by default
AccountSetupFinishPane:
message: You are ready to start planning your trips.
message: >-
Your changes have been saved. You are ready to start planning trips. Click
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a clever change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants