summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-06-03 13:27:06 +0200
committerAndrej Mihajlov <and@mullvad.net>2021-06-04 14:51:02 +0200
commit9e8ccb29dccd508d072f282881bba9b41fff75af (patch)
treeed8c9d1d3b47bd78aaa708893782df60a84f7fee /ios
parent17f76685505e1f67ae1d669fa1045d1f03adbe02 (diff)
downloadmullvadvpn-9e8ccb29dccd508d072f282881bba9b41fff75af.tar.xz
mullvadvpn-9e8ccb29dccd508d072f282881bba9b41fff75af.zip
Accessibility: add label for settings button and set header view accessibility trait
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/HeaderBarView.swift2
-rw-r--r--ios/MullvadVPN/en.lproj/Localizable.strings1
2 files changed, 3 insertions, 0 deletions
diff --git a/ios/MullvadVPN/HeaderBarView.swift b/ios/MullvadVPN/HeaderBarView.swift
index 72acecbf35..056bfcbb73 100644
--- a/ios/MullvadVPN/HeaderBarView.swift
+++ b/ios/MullvadVPN/HeaderBarView.swift
@@ -22,6 +22,7 @@ class HeaderBarView: UIView {
titleLabel.text = "MULLVAD VPN"
titleLabel.font = UIFont.boldSystemFont(ofSize: 24)
titleLabel.textColor = UIColor.white.withAlphaComponent(0.8)
+ titleLabel.accessibilityTraits.insert(.header)
return titleLabel
}()
@@ -32,6 +33,7 @@ class HeaderBarView: UIView {
settingsButton.setImage(UIImage(named: "IconSettings"), for: .normal)
settingsButton.translatesAutoresizingMaskIntoConstraints = false
settingsButton.accessibilityIdentifier = "SettingsButton"
+ settingsButton.accessibilityLabel = NSLocalizedString("HEADER_BAR_SETTINGS_BUTTON_ACCESSIBILITY_LABEL", comment: "")
return settingsButton
}
diff --git a/ios/MullvadVPN/en.lproj/Localizable.strings b/ios/MullvadVPN/en.lproj/Localizable.strings
index ea32a96461..56d4e1f49c 100644
--- a/ios/MullvadVPN/en.lproj/Localizable.strings
+++ b/ios/MullvadVPN/en.lproj/Localizable.strings
@@ -6,4 +6,5 @@
Copyright © 2021 Mullvad VPN AB. All rights reserved.
*/
+"HEADER_BAR_SETTINGS_BUTTON_ACCESSIBILITY_LABEL" = "Settings";
"RECONNECT_BUTTON_ACCESSIBILITY_LABEL" = "Reconnect";