Skip to content

Conversation

@ajaygandecha
Copy link

This PR fixes a bug in the Material chip component where avatar images were significantly vertically stretched on many browsers. After some investigation, it appears this bug was introduced with #30867 - reverting the CSS rule here fixes the issue on both Safari (where it was most prominent) and on Chrome.

Before (Vertical Stretching Issue)

In both Safari and Chrome, chip images were stretched (though Safari to a much greater extent).

Safari Chrome

After

Images appear correctly when testing in the dev environment in both Safari and Chrome:

image

All chip component tests pass after this change is made.

Consequences

Since this PR reverts #30867, the previously mentioned bug with text spacing may be re-introduced. I was unable to replicate it in the dev environment, though it might be something to look into. Still wanted to open this PR since this issue seems widespread for all uses of the avatar on the chip component and is currently affecting applications in production using the new version.

Fixes #32251.

Fixes a bug in the Material chip component where avatar images
were significantly vertically stretched on many browsers (most
prominently on Safari, but visible on Chrome as well).

Fixes angular#32251
@ajaygandecha ajaygandecha requested a review from a team as a code owner November 6, 2025 01:48
@ajaygandecha ajaygandecha requested review from andrewseguin and ok7sai and removed request for a team November 6, 2025 01:48
@crisbeto crisbeto requested a review from adolgachev November 6, 2025 09:29
@crisbeto
Copy link
Member

crisbeto commented Nov 7, 2025

Closing in favor of #32278. This change will reintroduce the bug we fixed earlier.

@crisbeto crisbeto closed this Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(chip): chip avatar images vertically stretched

2 participants