Skip to content

Commit

Permalink
[Documentation] Added note about screen readers skipping decorative t…
Browse files Browse the repository at this point in the history
…ext field elements.

PiperOrigin-RevId: 407423892
  • Loading branch information
leticiarossi authored and drchen committed Nov 4, 2021
1 parent a3b5440 commit a369449
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/components/TextField.md
Expand Up @@ -75,6 +75,9 @@ content description via the `app:errorContentDescription` attribute or
`setErrorContentDescription` method. That way the error will announce the
content description instead of the error message.

**Note:** Icons that don't have click listeners set on them work as decorative
elements, and are therefore skipped by screen readers.

#### Custom `EditText`

If you are using a custom `EditText` as `TextInputLayout`'s child and your text
Expand Down Expand Up @@ -143,7 +146,7 @@ clear the input text.

It is possible to set a custom `Drawable` as the text field's trailing icon via
`app:endIconMode="custom"`. You should specify a drawable and content
description for the icon, and, you have the option to specify custom behaviors.
description for the icon, and you have the option to specify custom behaviors.

In the layout:

Expand Down

0 comments on commit a369449

Please sign in to comment.