Additional translations and accessiblity labels

This commit is contained in:
David Langley
2022-10-13 17:03:33 +01:00
parent 031c4dcc5b
commit d7b48f4b03
5 changed files with 39 additions and 1 deletions
@@ -140,6 +140,7 @@ struct Composer: View {
.padding(11)
.background(Circle().fill(theme.colors.system))
}
.accessibilityLabel(VectorL10n.create)
FormattingToolbar(formatItems: formatItems) { type in
wysiwygViewModel.apply(type.action)
}
@@ -167,6 +168,7 @@ struct Composer: View {
}
}
.accessibilityIdentifier(actionButtonAccessibilityIdentifier)
.accessibilityLabel(VectorL10n.send)
.isHidden(!showSendButton)
}
.onChange(of: wysiwygViewModel.isContentEmpty) { empty in
@@ -45,6 +45,7 @@ struct FormattingToolbar: View {
.background(item.active ? theme.colors.accent.opacity(0.1) : theme.colors.background)
.cornerRadius(8)
.accessibilityIdentifier(item.accessibilityIdentifier)
.accessibilityLabel(item.accessibilityLabel)
}
}
}