Skip to content

Commit a369449

Browse files
leticiarossidrchen
authored andcommitted
[Documentation] Added note about screen readers skipping decorative text field elements.
PiperOrigin-RevId: 407423892
1 parent a3b5440 commit a369449

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/components/TextField.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ content description via the `app:errorContentDescription` attribute or
7575
`setErrorContentDescription` method. That way the error will announce the
7676
content description instead of the error message.
7777

78+
**Note:** Icons that don't have click listeners set on them work as decorative
79+
elements, and are therefore skipped by screen readers.
80+
7881
#### Custom `EditText`
7982

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

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

148151
In the layout:
149152

0 commit comments

Comments
 (0)