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
@@ -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