material-components / material-components/material-components-android
[TextInputLayout][Accessibility] Touch target hight of error message doesn't adjust
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** The touch target box hight of the error message doesn't adjust when support text with multiple lines is converted to an error message. Please follow these steps below.
* Set a support text that wraps up into multiple lines.
* Turn on the TalkBack.
* Select the support text to check the touch target area (Will notice the touch target box will take the size of multiple text lines).
* Next turn on the error state of the text input field by setting a shot error message(Message fits into one line would do it)(I did it with a button action).
* Now select the error message.
* It'll be noticed that the touch target box hight of error message will still take the space of multiple lines.

**Expected behavior:** The touch target box hight of the error message should adjust to fit the error message without any extra line space.

**Android API version:** Android API version 28
**Material Library version:** 1.1.0
**Device:** Emulator Pixel 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating TextInputLayout's support-text and error-message accessibility handling, then reproduce the transition from multiline support text to a short error message with TalkBack on API 28. Done means the error message's touch target matches its actual content without retaining the previous multiline height.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- accessibility, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100