Skip to content

feat: properly align lists within dialogs #4825

@rolandjitsu

Description

@rolandjitsu

Bug, feature request, or proposal:

Feature

What is the expected behavior?

According to the Material specs, there are Simple Dialogs, which allows for the use of lists within a dialog. Lists in dialogs should be properly aligned (either remove padding on dialog when there's lists inside them or the padding on the list itself if it's a child of a dialog).

What is the current behavior?

Currently lists look a little odd in a dialog.

What are the steps to reproduce?

Render a simple dialog with the following content:

<md-nav-list>
    <h1 md-subheader>Test</h3>
    <a *ngFor="let item of items; trackBy" md-list-item (click)="goToItem(item)">
        <h2 md-line>{{item.name}}</h2>
    </a>
</md-nav-list>

What is the use-case or motivation for changing an existing behavior?

Since the specs allow for this, it would be a good idea to support it.

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

Angular 4.1.3
Material 2.0.0-beta.6
TypeScript 2.3.3
Mac OS X 10.12.4

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: discussionFurther discussion with the team is needed before proceeding

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions