mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
Accessibility label for editing the avatar (#4304)
* accessibility label for editing the avatar * always read edit avatar
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
"a11y_add_reaction" = "Add reaction: %1$@";
|
"a11y_add_reaction" = "Add reaction: %1$@";
|
||||||
"a11y_avatar" = "Avatar";
|
"a11y_avatar" = "Avatar";
|
||||||
"a11y_delete" = "Delete";
|
"a11y_delete" = "Delete";
|
||||||
|
"a11y_edit_avatar" = "Edit avatar";
|
||||||
"a11y_hide_password" = "Hide password";
|
"a11y_hide_password" = "Hide password";
|
||||||
"a11y_join_call" = "Join call";
|
"a11y_join_call" = "Join call";
|
||||||
"a11y_jump_to_bottom" = "Jump to bottom";
|
"a11y_jump_to_bottom" = "Jump to bottom";
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ internal enum L10n {
|
|||||||
internal static func a11yDigitsEntered(_ p1: Int) -> String {
|
internal static func a11yDigitsEntered(_ p1: Int) -> String {
|
||||||
return L10n.tr("Localizable", "a11y_digits_entered", p1)
|
return L10n.tr("Localizable", "a11y_digits_entered", p1)
|
||||||
}
|
}
|
||||||
|
/// Edit avatar
|
||||||
|
internal static var a11yEditAvatar: String { return L10n.tr("Localizable", "a11y_edit_avatar") }
|
||||||
/// Hide password
|
/// Hide password
|
||||||
internal static var a11yHidePassword: String { return L10n.tr("Localizable", "a11y_hide_password") }
|
internal static var a11yHidePassword: String { return L10n.tr("Localizable", "a11y_hide_password") }
|
||||||
/// Join call
|
/// Join call
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ struct RoomDetailsEditScreen: View {
|
|||||||
contentID: context.viewState.roomID,
|
contentID: context.viewState.roomID,
|
||||||
avatarSize: .user(on: .memberDetails),
|
avatarSize: .user(on: .memberDetails),
|
||||||
mediaProvider: context.mediaProvider)
|
mediaProvider: context.mediaProvider)
|
||||||
|
.accessibilityLabel(L10n.a11yEditAvatar)
|
||||||
.overlay(alignment: .bottomTrailing) {
|
.overlay(alignment: .bottomTrailing) {
|
||||||
if context.viewState.canEditAvatar {
|
if context.viewState.canEditAvatar {
|
||||||
avatarOverlayIcon
|
avatarOverlayIcon
|
||||||
@@ -120,6 +121,7 @@ struct RoomDetailsEditScreen: View {
|
|||||||
Circle()
|
Circle()
|
||||||
.foregroundColor(.black)
|
.foregroundColor(.black)
|
||||||
}
|
}
|
||||||
|
.accessibilityHidden(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
|
|||||||
Reference in New Issue
Block a user