From a3694498096bc60059784ddd31023a9e90894ced Mon Sep 17 00:00:00 2001 From: leticiars Date: Wed, 3 Nov 2021 17:16:43 -0400 Subject: [PATCH] [Documentation] Added note about screen readers skipping decorative text field elements. PiperOrigin-RevId: 407423892 --- docs/components/TextField.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/components/TextField.md b/docs/components/TextField.md index 0284b339e01..3f0ca04f118 100644 --- a/docs/components/TextField.md +++ b/docs/components/TextField.md @@ -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 @@ -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: