Skip to content

fix(toast): screen readers announce content #27198

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

Merged
merged 15 commits into from
Apr 18, 2023
Merged

fix(toast): screen readers announce content #27198

merged 15 commits into from
Apr 18, 2023

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Apr 13, 2023

Issue URL: resolves #25866


Docs PR: ionic-team/ionic-docs#2914

What is the current behavior?

NVDA is not announcing toasts on present.

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 7.0.3-dev.11681482468.19d7784f

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@liamdebeasi liamdebeasi marked this pull request as ready for review April 14, 2023 15:16
@liamdebeasi liamdebeasi requested a review from a team as a code owner April 14, 2023 15:16
@liamdebeasi liamdebeasi requested review from sean-perkins and a team April 14, 2023 18:21
@averyjohnston averyjohnston self-requested a review April 18, 2023 14:44
Copy link
Contributor

@averyjohnston averyjohnston left a comment

Choose a reason for hiding this comment

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

Tried this with TalkBack on my phone and it worked beautifully 👍

@liamdebeasi liamdebeasi added this pull request to the merge queue Apr 18, 2023
Merged via the queue into main with commit 76c8b94 Apr 18, 2023
@liamdebeasi liamdebeasi deleted the FW-2713 branch April 18, 2023 15:20
liamdebeasi added a commit that referenced this pull request Apr 19, 2023
Issue URL: resolves #25866

---------

Docs PR: ionic-team/ionic-docs#2914

<!-- Please refer to our contributing documentation for any questions on
submitting a pull request, or let us know here if you need any help:
https://ionicframework.com/docs/building/contributing -->

<!-- Some docs updates need to be made in the `ionic-docs` repo, in a
separate PR. See
https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#modifying-documentation
for details. -->

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->


<!-- Issues are required for both bug fixes and features. -->

NVDA is not announcing toasts on present.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Toast has a "status" role and "polite" announcement.
- We also revisited the intended behavior of toasts to better align with
the Material Design v2 spec:
https://m2.material.io/components/snackbars/web#accessibility

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

Dev build: 7.0.3-dev.11681482468.19d7784f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(a11y): assertive toast not announced
3 participants