Skip to content

bug(mat-divider): wrong styling #9233

Closed
@jotatoledo

Description

@jotatoledo

Bug, feature request, or proposal:

Bug introduced by #5862

What is the expected behavior?

  • A mat-divider with inset=true is vertically aligned to the start of a mat-list-item text
  • The behavior is the same when used in a mat-list contained in a card

The lists (inside and outside the card) should look as presented in https://material.io/guidelines/components/dividers.html#dividers-usage

What is the current behavior?

  • A mat-divider with inset=true wont align vertically to the start of a mat-list-item text
  • Behavior is removed when used inside of a mat-list contained in a mat-card

What are the steps to reproduce?

https://stackblitz.com/edit/angular-mat-div-issue?file=index.html

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 5.x.x
Material 5.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionshelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions