mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix some issues with missing a11y labels (#5747)
* add a11y label to the bug report field * include a11y label to the list row directly * remove is header trait from poll form question header section * a11y label added to the create room screen name textfield
This commit is contained in:
@@ -139,6 +139,8 @@ public struct ListRow<Icon: View, DetailsIcon: View, CustomContent: View, Select
|
||||
.tint(.compound.iconAccentTertiary)
|
||||
.foregroundStyle(isEnabled ? .compound.textPrimary : .compound.textDisabled)
|
||||
.listRowInsets(ListRowPadding.textFieldInsets)
|
||||
// The title is used as the placeholder, which VoiceOver only reads while empty.
|
||||
.accessibilityLabel(label.title ?? "")
|
||||
case .secureField(let text):
|
||||
SecureField(text: text) {
|
||||
Text(label.title ?? "")
|
||||
@@ -147,6 +149,7 @@ public struct ListRow<Icon: View, DetailsIcon: View, CustomContent: View, Select
|
||||
.tint(.compound.iconAccentTertiary)
|
||||
.foregroundStyle(isEnabled ? .compound.textPrimary : .compound.textDisabled)
|
||||
.listRowInsets(ListRowPadding.textFieldInsets)
|
||||
.accessibilityLabel(label.title ?? "")
|
||||
|
||||
case .custom(let content):
|
||||
content()
|
||||
|
||||
Reference in New Issue
Block a user