mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Associate the room address field helper text and error with the field
The address field already had an accessibility label, but the section's helper text and validation error were only shown in a separate footer and weren't conveyed to VoiceOver when focusing the field. Compose them into the field's accessibility hint. Addresses #5258.
This commit is contained in:
@@ -16,7 +16,9 @@ struct EditRoomAddressScreen: View {
|
||||
Form {
|
||||
Section {
|
||||
EditRoomAddressListRow(aliasLocalPart: $context.desiredAliasLocalPart,
|
||||
serverName: context.viewState.serverName, shouldDisplayError: context.viewState.aliasErrors.errorDescription != nil)
|
||||
serverName: context.viewState.serverName,
|
||||
errorDescription: context.viewState.aliasErrors.errorDescription,
|
||||
footerText: L10n.screenEditRoomAddressRoomAddressSectionFooter)
|
||||
.onChange(of: context.desiredAliasLocalPart) { _, newAliasLocalPart in
|
||||
context.desiredAliasLocalPart = newAliasLocalPart.lowercased()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user