Skip to content

Commit c4b5ab1

Browse files
authored
Bugfix FXIOS-11130 [ToS] - "Welcome to Firefox" is announced when opening the manage bottom sheet (#24303)
FXIOS-11130 [Terms of service] [Accessibility] - "Welcome to Firefox" is announced when opening the manage bottom sheet
1 parent 061f3cb commit c4b5ab1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

firefox-ios/Client/Frontend/Onboarding/Views/PrivacyPreferencesViewController.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ final class PrivacyPreferencesViewController: UIViewController,
8888
listenForThemeChange(view)
8989
}
9090

91+
override func viewDidAppear(_ animated: Bool) {
92+
super.viewDidAppear(animated)
93+
UIAccessibility.post(notification: .screenChanged, argument: view)
94+
}
95+
9196
// MARK: - View setup
9297
private func setupLayout() {
9398
view.addSubview(titleLabel)
@@ -184,6 +189,8 @@ final class PrivacyPreferencesViewController: UIViewController,
184189
}
185190

186191
private func setupAccessibility() {
192+
contentView.accessibilityElements = [technicalDataSwitch, crashReportsSwitch]
193+
view.accessibilityElements = [titleLabel, doneButton, contentScrollView]
187194
let identifiers = AccessibilityIdentifiers.TermsOfService.PrivacyNotice.self
188195
titleLabel.accessibilityIdentifier = identifiers.title
189196
doneButton.accessibilityIdentifier = identifiers.doneButton

0 commit comments

Comments
 (0)