Hint text semantics to be excluded in a11y read out if textfield in not empty and label text is provided #114511
Labels
a: accessibility
Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)
a: text input
Entering text in a text field or keyboard related problems
customer: google
Various Google teams
customer: money (g3)
f: material design
flutter/packages/flutter/material repository.
framework
flutter/packages/flutter repository. See also f: labels.
P0
Critical issues such as a build break or regression
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?
The text was updated successfully, but these errors were encountered: