Skip to content

Hint text semantics to be excluded in a11y read out if textfield in not empty and label text is provided  #114511

@stellaseahll

Description

@stellaseahll

Internal: b/258261921

Currently, hint text can either be used to (1) provide hint text for users, or (2) as a label for the text field.
E.g. to enter phone number, hint text can be either (1) 0000 - 0000 or (2) Phone number.

For a11y users, the hint text is always read regardless of use case (1) or (2) and this is problematic for use case (1).

E.g. when the text field is filled with 1234 - 5678, it reads both the text and hint text "1234 - 5678, 0000 - 0000"

Can we tweak the current feature to exclude the hint from a11y if the textfield is not empty AND a dedicated label text is given?

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 teamscustomer: money (g3)f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions