material-components / material-components/material-components-android
[Chip] Chip is unable to stretch its text vertically(like button), when it's constrained horizontally
Open
Nobody has claimed this yet.
feature request
Widget: Chip
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
I don't know if it's an intended behaviour, but it doesn't look like that. Maybe you can allow Chip to behave like Button in this case?
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 comparing the Chip and Button components and how each measures text when constrained horizontally. Reproduce the reported vertical-stretch behavior in an Android layout, then verify that Chip matches the intended Button behavior without breaking existing Chip sizing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100