Skip to content

[a11y] UIAccessibilityTraitStaticText need to be added on iOS for text fields #41038

@mehmetf

Description

@mehmetf

Internal: b/141265252

Running the Google internal a11y checker on iOS on the hello-flutter sample app yields this:

Exception Name: GenericFailureException
Exception Reason: Accessibility checks failed.
Exception Details: One or more elements failed the accessibility checks:
 Element: <FlutterSemanticsObject: 0x7fc052577ae0>
   Error: Check "Accessibility label punctuation" failed,
This element has an accessibility label that ends in a period but doesn’t have a text trait. Accessibility labels aren’t sentences and don’t need periods.
If the element visually displays text it should have the UIAccessibilityTraitStaticText trait similar to UITextView or UILabel.

Label found: Button tapped 0 times..

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressiona: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: text inputEntering text in a text field or keyboard related problemscustomer: googleVarious Google teamsframeworkflutter/packages/flutter repository. See also f: labels.from: a11y reviewReported by an accessibility review teamplatform-iosiOS applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions