Skip to content

bug(matLine): Using matLine within MatListItem squishes buttons #19809

Open
@wakonp

Description

@wakonp

Reproduction

Use StackBlitz to reproduce my issue: https://components-issue-raav17.stackblitz.io

Steps to reproduce:

  1. Generate Angular Project
  2. Install newest Version of Material ( "@angular/material": "^10.0.0",)
  3. Create a MatList with MatListItems
  4. Use the matLine Component (Directive) within a span and add a button too
  5. Create a new MatListItem without the matLine Directive and a
    between the span and the button

Expected Behavior

In the StackBlitz Example the Button of the second MatListItem should get displayed as the first one.

Actual Behavior

In the StackBlitz Example the Button of the second MatListItem gets squished.

Environment

  • Angular: "@angular/core": "~10.0.0", "@angular/cli": "~10.0.0",...
  • CDK/Material: "@angular/material": "^10.0.0", "@angular/cdk": "^10.0.0",
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows
    image
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/list

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions