Skip to content

bug(mat-chip-option): overflows the content of a chip not respecting the width of the parent container (in version 14 it worked) #26519

@AdamsContreras999

Description

@AdamsContreras999

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

14.2.7

Description

the content of a chip overflows when the content is sufficiently long, overflowing the text

image
In this version works good 14.2.7

image
But in this version the material not work good 15.1.2

Reproduction

Steps to reproduce:

  1. Load a chip with enough text (even long enough to exceed the width of the parent container).
  2. See what overflows in the current version of angular material 15.1.2

Expected Behavior

The chip should cover the text by modifying its height, and covering all the text downwards without overflowing the parent container as it did in the angular 14.2.7 version.

Actual Behavior

The text inside a chip in angular version 15.1.2 overflows.

Environment

"@angular/animations": "^15.1.2",
"@angular/cdk": "^15.1.2",
"@angular/common": "^15.1.2",
"@angular/compiler": "^15.1.2",
"@angular/core": "^15.1.2",
"@angular/forms": "^15.1.2",
"@angular/material": "^15.1.2",
"@angular/platform-browser": "^15.1.2",
"@angular/platform-browser-dynamic": "^15.1.2",
"@angular/router": "^15.1.2",

Metadata

Metadata

Assignees

Labels

needs triageThis issue needs to be triaged by the team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions