From 1621340a9dc9e1b539201f0709621f6849e99557 Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 21 Oct 2026 13:10:20 +0100 Subject: [PATCH] Fix the settings button not being visible to VoiceOver. --- .../Other/SwiftUI/Views/AvatarSettingsButtonLabel.swift | 5 ++++- ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift | 2 -- .../Screens/Spaces/SpacesScreen/View/SpacesScreen.swift | 2 -- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ElementX/Sources/Other/SwiftUI/Views/AvatarSettingsButtonLabel.swift b/ElementX/Sources/Other/SwiftUI/Views/AvatarSettingsButtonLabel.swift index 08b6e6d83..eedb65208 100644 --- a/ElementX/Sources/Other/SwiftUI/Views/AvatarSettingsButtonLabel.swift +++ b/ElementX/Sources/Other/SwiftUI/Views/AvatarSettingsButtonLabel.swift @@ -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. } } diff --git a/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift b/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift index 667ad3332..0b8e57f11 100644 --- a/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift +++ b/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift @@ -107,8 +107,6 @@ struct HomeScreen: View { mediaProvider: context.mediaProvider) { context.send(viewAction: .showSettings) } - .accessibilityLabel(L10n.commonSettings) - .accessibilityIdentifier(A11yIdentifiers.homeScreen.userAvatar) } @ViewBuilder diff --git a/ElementX/Sources/Screens/Spaces/SpacesScreen/View/SpacesScreen.swift b/ElementX/Sources/Screens/Spaces/SpacesScreen/View/SpacesScreen.swift index 9a29e112c..f60d41ae5 100644 --- a/ElementX/Sources/Screens/Spaces/SpacesScreen/View/SpacesScreen.swift +++ b/ElementX/Sources/Screens/Spaces/SpacesScreen/View/SpacesScreen.swift @@ -100,8 +100,6 @@ struct SpacesScreen: View { context.send(viewAction: .showSettings) } .buttonStyle(.borderless) - .accessibilityLabel(L10n.commonSettings) - .accessibilityIdentifier(A11yIdentifiers.homeScreen.userAvatar) } .backportSharedBackgroundVisibility(.hidden)