a11y labels added to the home screen cell symbols (#4298)

This commit is contained in:
Mauro
2025-07-07 15:09:54 +02:00
committed by GitHub
parent 3219fe1674
commit 4d87612f21
3 changed files with 18 additions and 1 deletions
+10
View File
@@ -32,6 +32,12 @@ internal enum L10n {
internal static var a11yNotificationsMentionsOnly: String { return L10n.tr("Localizable", "a11y_notifications_mentions_only") }
/// Muted
internal static var a11yNotificationsMuted: String { return L10n.tr("Localizable", "a11y_notifications_muted") }
/// New mentions
internal static var a11yNotificationsNewMentions: String { return L10n.tr("Localizable", "a11y_notifications_new_mentions") }
/// New messages
internal static var a11yNotificationsNewMessages: String { return L10n.tr("Localizable", "a11y_notifications_new_messages") }
/// Ongoing call
internal static var a11yNotificationsOngoingCall: String { return L10n.tr("Localizable", "a11y_notifications_ongoing_call") }
/// Page %1$d
internal static func a11yPageN(_ p1: Int) -> String {
return L10n.tr("Localizable", "a11y_page_n", p1)
@@ -1482,6 +1488,10 @@ internal enum L10n {
internal static var screenEncryptionResetFooter: String { return L10n.tr("Localizable", "screen_encryption_reset_footer") }
/// Can't confirm? You’ll need to reset your identity.
internal static var screenEncryptionResetTitle: String { return L10n.tr("Localizable", "screen_encryption_reset_title") }
/// Chats
internal static var screenHomeTabChats: String { return L10n.tr("Localizable", "screen_home_tab_chats") }
/// Spaces
internal static var screenHomeTabSpaces: String { return L10n.tr("Localizable", "screen_home_tab_spaces") }
/// Can't confirm?
internal static var screenIdentityConfirmationCannotConfirm: String { return L10n.tr("Localizable", "screen_identity_confirmation_cannot_confirm") }
/// Create a new recovery key
@@ -108,6 +108,7 @@ struct HomeScreenRoomCell: View {
HStack(spacing: 8) {
if room.badges.isCallShown {
CompoundIcon(\.videoCallSolid, size: .xSmall, relativeTo: .compound.bodySM)
.accessibilityLabel(L10n.a11yNotificationsOngoingCall)
}
if room.badges.isMuteShown {
@@ -122,6 +123,7 @@ struct HomeScreenRoomCell: View {
if room.badges.isDotShown {
Circle()
.frame(width: 12, height: 12)
.accessibilityLabel(L10n.a11yNotificationsNewMessages)
}
}
.foregroundColor(room.isHighlighted ? .compound.iconAccentTertiary : .compound.iconQuaternary)
@@ -130,7 +132,7 @@ struct HomeScreenRoomCell: View {
private var mentionIcon: some View {
CompoundIcon(\.mention, size: .custom(15), relativeTo: .compound.bodyMD)
.accessibilityLabel(L10n.a11yNotificationsMentionsOnly)
.accessibilityLabel(L10n.a11yNotificationsNewMentions)
}
@ViewBuilder