Skip to content

bug(chip): Documentation not displaying Stacked chips correctly in the mat-chip-listbox #26589

Closed
@ChristopherSnay

Description

@ChristopherSnay

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

No response

Description

Page with the defect: https://material.angular.io/components/chips/examples

The last example, "Stacked chips" shows full-width chips when the mat-chip CSS shows max-width: 200px

Reproduction

Steps to reproduce:

  1. Go to https://material.angular.io/components/chips/examples
  2. Scroll to the bottom and view Stacked chips

Expected Behavior

mat-chip should obey the CSS that sets max-width to 200px;

Actual Behavior

mat-chips are 100% width of the container.
stacked-chips

Additionally, the only clickable area of the chip is the text area. The overflow is not clickable.

Environment

  • Angular:
  • CDK/Material:
  • Browser(s): Chrome and Edge
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: material/chipsdocsThis issue is related to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions