mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-24 18:59:36 +00:00
Fix the settings button not being visible to VoiceOver.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user