mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
Fix message composer textfield accessibility label (#688)
This commit is contained in:
@@ -41,6 +41,7 @@ struct MessageComposerTextField: View {
|
|||||||
isMultiline: $isMultiline,
|
isMultiline: $isMultiline,
|
||||||
maxHeight: maxHeight,
|
maxHeight: maxHeight,
|
||||||
onEnterKeyHandler: onEnterKeyHandler)
|
onEnterKeyHandler: onEnterKeyHandler)
|
||||||
|
.accessibilityLabel(placeholder)
|
||||||
.background(placeholderView, alignment: .topLeading)
|
.background(placeholderView, alignment: .topLeading)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,6 +50,7 @@ struct MessageComposerTextField: View {
|
|||||||
if showingPlaceholder {
|
if showingPlaceholder {
|
||||||
Text(placeholder)
|
Text(placeholder)
|
||||||
.foregroundColor(placeholderColor)
|
.foregroundColor(placeholderColor)
|
||||||
|
.accessibilityHidden(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Hide the message composer textfield placeholder for VoiceOver users by Sem Pruijs
|
||||||
Reference in New Issue
Block a user