material-components / material-components/material-components-android
[TextInputLayout][Accessibility] Touch target hight of error message doesn't adjust
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 17.4k
- Forks
- 3.2k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Barrierefreiheitsbehandlung von support-text und Fehlermeldungen in TextInputLayout zu lokalisieren, und bilde dann den Übergang von mehrzeiligem support-text zu einer kurzen Fehlermeldung mit TalkBack auf API 28 nach. Als erledigt gilt die Änderung, wenn die Touch-Zielgröße der Fehlermeldung ihrem tatsächlichen Inhalt entspricht, ohne die vorherige mehrzeilige Höhe beizubehalten.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, java
- Bereich
- accessibility, mobile-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100