From dac4c985d64cc8dd4c537efc55d8427bdbb00a5a Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Mon, 21 Jul 2025 15:26:38 +0200 Subject: [PATCH] tombstoned room a11y label --- ElementX/Resources/Localizations/en.lproj/Localizable.strings | 1 + ElementX/Sources/Generated/Strings.swift | 2 ++ .../Sources/Other/SwiftUI/Views/TombstonedAvatarImage.swift | 1 + 3 files changed, 4 insertions(+) diff --git a/ElementX/Resources/Localizations/en.lproj/Localizable.strings b/ElementX/Resources/Localizations/en.lproj/Localizable.strings index e4f19926f..560223241 100644 --- a/ElementX/Resources/Localizations/en.lproj/Localizable.strings +++ b/ElementX/Resources/Localizations/en.lproj/Localizable.strings @@ -31,6 +31,7 @@ "a11y_show_password" = "Show password"; "a11y_start_call" = "Start a call"; "a11y_time_limited_action_required" = "Time limited action required"; +"a11y_tombstoned_room" = "Tombstoned room"; "a11y_user_menu" = "User menu"; "a11y_view_avatar" = "View avatar"; "a11y_view_details" = "View details"; diff --git a/ElementX/Sources/Generated/Strings.swift b/ElementX/Sources/Generated/Strings.swift index fe8dac861..0033c0297 100644 --- a/ElementX/Sources/Generated/Strings.swift +++ b/ElementX/Sources/Generated/Strings.swift @@ -106,6 +106,8 @@ internal enum L10n { internal static var a11yStartCall: String { return L10n.tr("Localizable", "a11y_start_call") } /// Time limited action required internal static var a11yTimeLimitedActionRequired: String { return L10n.tr("Localizable", "a11y_time_limited_action_required") } + /// Tombstoned room + internal static var a11yTombstonedRoom: String { return L10n.tr("Localizable", "a11y_tombstoned_room") } /// User menu internal static var a11yUserMenu: String { return L10n.tr("Localizable", "a11y_user_menu") } /// View avatar diff --git a/ElementX/Sources/Other/SwiftUI/Views/TombstonedAvatarImage.swift b/ElementX/Sources/Other/SwiftUI/Views/TombstonedAvatarImage.swift index 96ede63cb..0a929dbce 100644 --- a/ElementX/Sources/Other/SwiftUI/Views/TombstonedAvatarImage.swift +++ b/ElementX/Sources/Other/SwiftUI/Views/TombstonedAvatarImage.swift @@ -25,6 +25,7 @@ struct TombstonedAvatarImage: View { .font(.system(size: geometry.size.width * 0.5625, weight: .semibold)) .minimumScaleFactor(0.001) .frame(alignment: .center) + .accessibilityLabel(L10n.a11yTombstonedRoom) } } .aspectRatio(1, contentMode: .fill)