material-components / material-components/material-components-android

[TextInputLayout] When in error allow the `hint text` to remain tinted using the specified hint text color

Open
#2,676 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Widget: TextField
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.