Skip to content
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

feat(mobile): thumbnail alt text #10733

Closed
wants to merge 3 commits into from
Closed

Conversation

ben-basten
Copy link
Member

@ben-basten ben-basten commented Jul 1, 2024

Description

Fixes #10336

Adding alt text to the image thumbnails in the asset grid.

Defaults to the description if present, otherwise it includes the date and location.

How Has This Been Tested?

  • TalkBack for Android
  • VoiceOver for iOS

The testing scenarios that I tried:

  • alt text for remote assets
  • alt text for local assets
  • alt text for remote assets, after an edit has been made to the description on the web and the app is re-syncing the database
  • thumbnails in the "Library" album cards and "Sharing" album cards do not announce the alt text

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable

);
} else if (isRemote) {
return _copyWith(
localId: localId ?? a.localId,
width: width ?? a.width,
height: height ?? a.height,
exifInfo: exifInfo ?? a.exifInfo?.copyWith(id: id),
altText: altText ?? a.altText,
Copy link
Member Author

@ben-basten ben-basten Jul 1, 2024

Choose a reason for hiding this comment

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

I'm not sure how to reproduce the scenario in this else if (isRemote) conditional, but the alt text coming from the remote copy should always be preferred.

@ben-basten ben-basten changed the title feat(mobile): mobile thumbnail alt text feat(mobile): thumbnail alt text Jul 1, 2024
@ben-basten ben-basten marked this pull request as draft July 5, 2024 23:22
@ben-basten
Copy link
Member Author

Closing for now, as the work is incomplete for the asset viewer. Will reopen when it's ready!

@ben-basten ben-basten closed this Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mobile: Android accessibility
2 participants