material-components / material-components/material-components-android
[TextInputLayout] When in error allow the `hint text` to remain tinted using the specified hint text color
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
When the `TextInputLayout` is in error, the hint text is also tinted using the error color specified for the app. This provides an overwhelming experience to the user.
**Describe the solution you'd like**
Perhaps the `hint text` can use a color selector where there is a `state_error`.
**Describe alternatives you've considered**
**Additional context**
Implementation Screen

We also happily accept [pull requests](https://github.com/material-components/material-components-android/pulls).
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 the TextInputLayout implementation and its handling of hint and error colors. Trace the existing error-state behavior, then identify the relevant Android tests or examples and verify that the hint retains its specified color while the layout remains in error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- design, mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100