material-components / material-components/material-components-android
[TextField] Disable populated label text
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description**
According to the [M3 TextField Specs](https://m3.material.io/components/text-fields/specs#93411619-a459-4bb7-8a5c-74cd531d3bc5) (see example 7 in linked table), it should be possible to have outlined TextFields without a populated label text.
Unfortunately there is no possible attribute / method to achieve this behaviour (or am I missing sth. here?).
What we want to achieve is to have a TextField where we can set a hint, but when the user starts typing the hint is no longer shown. So far we only can deactivate the hint completely or otherwise have it shown as the populated label text.
**Feature request / Wanted solution**
It would be nice if the populated label text could be deactivated.
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 at the TextField component and compare its current hint and populated-label behavior with example 7 in the linked M3 TextField Specs. Determine the API behavior needed so an outlined field can retain a hint without showing populated label text after typing; done when that behavior is supported and covered by the component’s existing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- design, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100