mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
a11y labels added to the home screen cell symbols (#4298)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user