mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Add a programmatic label to the join room by address field
The field relied on its placeholder for a label, which VoiceOver only reads while empty. Set a persistent accessibility label so it's always announced. Addresses #5256.
This commit is contained in:
@@ -53,6 +53,7 @@ struct JoinRoomByAddressView: View {
|
||||
.textInputAutocapitalization(.never)
|
||||
.autocorrectionDisabled()
|
||||
.textContentType(.URL)
|
||||
.accessibilityLabel(L10n.screenStartChatJoinRoomByAddressPlaceholder)
|
||||
.focused($textFieldFocus)
|
||||
.onChange(of: context.roomAddress) { _, newValue in
|
||||
context.roomAddress = newValue.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
|
||||
Reference in New Issue
Block a user