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

[Chip] Chip is unable to stretch its text vertically(like button), when it's constrained horizontally

Open
#2,473 6 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.