mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
voiceover reads add avatar when there is no avatar yet
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
"a11y_add_avatar" = "Add avatar";
|
||||||
"a11y_add_reaction" = "Add reaction: %1$@";
|
"a11y_add_reaction" = "Add reaction: %1$@";
|
||||||
"a11y_address" = "Address";
|
"a11y_address" = "Address";
|
||||||
"a11y_avatar" = "Avatar";
|
"a11y_avatar" = "Avatar";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
"a11y_add_avatar" = "Add avatar";
|
||||||
"a11y_add_reaction" = "Add reaction: %1$@";
|
"a11y_add_reaction" = "Add reaction: %1$@";
|
||||||
"a11y_address" = "Address";
|
"a11y_address" = "Address";
|
||||||
"a11y_avatar" = "Avatar";
|
"a11y_avatar" = "Avatar";
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ import Foundation
|
|||||||
// swiftlint:disable explicit_type_interface function_parameter_count identifier_name line_length
|
// swiftlint:disable explicit_type_interface function_parameter_count identifier_name line_length
|
||||||
// swiftlint:disable nesting type_body_length type_name vertical_whitespace_opening_braces
|
// swiftlint:disable nesting type_body_length type_name vertical_whitespace_opening_braces
|
||||||
internal enum L10n {
|
internal enum L10n {
|
||||||
|
/// Add avatar
|
||||||
|
internal static var a11yAddAvatar: String { return L10n.tr("Localizable", "a11y_add_avatar") }
|
||||||
/// Add reaction: %1$@
|
/// Add reaction: %1$@
|
||||||
internal static func a11yAddReaction(_ p1: Any) -> String {
|
internal static func a11yAddReaction(_ p1: Any) -> String {
|
||||||
return L10n.tr("Localizable", "a11y_add_reaction", String(describing: p1))
|
return L10n.tr("Localizable", "a11y_add_reaction", String(describing: p1))
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ struct CreateRoomScreen: View {
|
|||||||
.accessibilityHidden(true)
|
.accessibilityHidden(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.accessibilityLabel(L10n.a11yEditAvatar)
|
.accessibilityLabel(context.viewState.avatarImage == nil ? L10n.a11yAddAvatar : L10n.a11yEditAvatar)
|
||||||
.accessibilityRemoveTraits(.isHeader)
|
.accessibilityRemoveTraits(.isHeader)
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
.accessibilityIdentifier(A11yIdentifiers.createRoomScreen.roomAvatar)
|
.accessibilityIdentifier(A11yIdentifiers.createRoomScreen.roomAvatar)
|
||||||
|
|||||||
Reference in New Issue
Block a user