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:
Mauro
2026-06-19 11:48:13 +02:00
committed by GitHub
parent 4ab0f659b2
commit 6a381dcef0
3 changed files with 5 additions and 0 deletions
@@ -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()