Fix the settings button not being visible to VoiceOver.

This commit is contained in:
Doug
2026-10-21 13:10:20 +01:00
committed by Mauro
parent a55e1a278f
commit 1621340a9d
3 changed files with 4 additions and 5 deletions
@@ -29,15 +29,18 @@ struct AvatarSettingsButton: View {
avatarSize: .user(on: isCompact ? .chatsCompact : .chats),
mediaProvider: mediaProvider)
}
.accessibilityLabel(L10n.commonSettings)
.accessibilityIdentifier(A11yIdentifiers.homeScreen.userAvatar)
if let statusEmoji = userProfile.status.displayed?.emoji {
Text(String(statusEmoji))
.font(isCompact ? .compound.bodyXSSemibold : .compound.bodyLGSemibold)
.foregroundStyle(.compound.textPrimary)
.accessibilityLabel(L10n.a11yStatus)
.accessibilityValue(String(statusEmoji))
}
}
.geometryGroup()
.accessibilityHidden(true) // Decorative, the enclosing button provides the description.
}
}
@@ -107,8 +107,6 @@ struct HomeScreen: View {
mediaProvider: context.mediaProvider) {
context.send(viewAction: .showSettings)
}
.accessibilityLabel(L10n.commonSettings)
.accessibilityIdentifier(A11yIdentifiers.homeScreen.userAvatar)
}
@ViewBuilder
@@ -100,8 +100,6 @@ struct SpacesScreen: View {
context.send(viewAction: .showSettings)
}
.buttonStyle(.borderless)
.accessibilityLabel(L10n.commonSettings)
.accessibilityIdentifier(A11yIdentifiers.homeScreen.userAvatar)
}
.backportSharedBackgroundVisibility(.hidden)