Merge pull request #784 from Bracciata/bugfix/309

fix: updated logo button's alt text to be more accessible
This commit is contained in:
Nathan Mattes 2022-12-26 17:03:45 +01:00 committed by GitHub
commit cab9574fbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 7 deletions

View File

@ -385,7 +385,7 @@
"published": "Published!",
"Publishing": "Publishing post...",
"accessibility": {
"logo_label": "Logo Button",
"logo_label": "Mastodon",
"logo_hint": "Tap to scroll to top and tap again to previous location"
}
}

View File

@ -385,7 +385,7 @@
"published": "Published!",
"Publishing": "Publishing post...",
"accessibility": {
"logo_label": "Logo Button",
"logo_label": "Mastodon",
"logo_hint": "Tap to scroll to top and tap again to previous location"
}
}

View File

@ -103,8 +103,8 @@ extension HomeTimelineNavigationBarTitleView {
logoButton.setImage(Asset.Asset.mastodonTextLogo.image.withRenderingMode(.alwaysTemplate), for: .normal)
logoButton.contentMode = .center
logoButton.isHidden = false
logoButton.accessibilityLabel = "Logo Button" // TODO :i18n
logoButton.accessibilityHint = "Tap to scroll to top and tap again to previous location"
logoButton.accessibilityLabel = L10n.Scene.HomeTimeline.NavigationBarState.Accessibility.logoLabel // TODO :i18n
logoButton.accessibilityHint = L10n.Scene.HomeTimeline.NavigationBarState.Accessibility.logoHint
case .newPostButton:
configureButton(
title: L10n.Scene.HomeTimeline.NavigationBarState.newPosts,

View File

@ -257,7 +257,7 @@ uploaded to Mastodon.";
"Scene.Following.Footer" = "Follows from other servers are not displayed.";
"Scene.Following.Title" = "following";
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoHint" = "Tap to scroll to top and tap again to previous location";
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoLabel" = "Logo Button";
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoLabel" = "Mastodon";
"Scene.HomeTimeline.NavigationBarState.NewPosts" = "See new posts";
"Scene.HomeTimeline.NavigationBarState.Offline" = "Offline";
"Scene.HomeTimeline.NavigationBarState.Published" = "Published!";

View File

@ -63,8 +63,6 @@ Please check your internet connection.";
"Common.Controls.Actions.SignUp" = "Create account";
"Common.Controls.Actions.Skip" = "Skip";
"Common.Controls.Actions.TakePhoto" = "Take Photo";
"Common.Controls.Actions.TranslatePost.Title" = "Translate from %@";
"Common.Controls.Actions.TranslatePost.UnknownLanguage" = "Unknown";
"Common.Controls.Actions.TryAgain" = "Try Again";
"Common.Controls.Actions.UnblockDomain" = "Unblock %@";
"Common.Controls.Friendship.Block" = "Block";