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): add labels to app bar buttons #7865

Merged
merged 1 commit into from Mar 12, 2024

Conversation

ben-basten
Copy link
Contributor

@ben-basten ben-basten commented Mar 11, 2024

Description

Adds labels to some of the buttons in the top app bar for screen reader users, to provide context about where the buttons go.

Note: I did not modify the rightmost profile circle button, because I think new internationalization text will need to be added for this. Something like "Profile and settings" maybe, and modify the header of the resulting popup to match for predictability?

How Has This Been Tested?

  • VoiceOver for iOS
  • TalkBack for Android - untested, I don't have a physical Android to test with yet...

Screenshots (if appropriate):

No visible changes

Checklist:

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

@@ -80,6 +81,7 @@ class ImmichAppBar extends ConsumerWidget implements PreferredSizeWidget {
strokeWidth: 2,
strokeCap: StrokeCap.round,
valueColor: AlwaysStoppedAnimation<Color>(iconColor),
semanticsLabel: 'backup_controller_page_backup'.tr(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the future, it would be cool if these labels included the status of the backup. That's a cue that sighted users get from the icon, but screen readers miss. Something like:

  • Backup (complete)
  • Backup (in progress)
  • Backup (off)

@alextran1502 alextran1502 merged commit 727a8cd into immich-app:main Mar 12, 2024
24 of 26 checks passed
@ben-basten ben-basten deleted the feat/mobile-labels branch March 28, 2024 16:18
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.

None yet

3 participants