Skip to content

fix(react-storage): upload status not annouced to AT users #6509

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: main
Choose a base branch
from

Conversation

aadimch
Copy link
Contributor

@aadimch aadimch commented Apr 9, 2025

Description of changes

Adding a new VisuallyHidden Text, that will announce the file upload status changes to screen reader.

Issue #, if available

Description of how you validated changes

Manual testing with VoiceOver

Checklist

  • Have read the Pull Request Guidelines
  • PR description included
  • yarn test passes and tests are updated/added
  • PR title and commit messages follow conventional commit syntax
  • If this change should result in a version bump, changeset added (This can be done after creating the PR.) This does not apply to changes made to docs, e2e, examples, or other private packages.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

changeset-bot bot commented Apr 9, 2025

🦋 Changeset detected

Latest commit: a5ef05d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@aws-amplify/ui-react-storage Patch
@aws-amplify/ui-test-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines +93 to +98
return (
<>
<VisuallyHidden role="status">{announcementText()}</VisuallyHidden>
{renderStatusMessage()}
</>
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The VisuallyHidden component is required to be mounted early, so that the user can hear the announcement. It is generally preffered to have the aria-live component, be present in the DOM, as soon as possible.

@aadimch aadimch marked this pull request as ready for review April 11, 2025 17:57
@aadimch aadimch requested a review from a team as a code owner April 11, 2025 17:57
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.

1 participant