Skip to content

Misaligned icon in nav-list #2999

Closed
Closed
@AsherFoster

Description

@AsherFoster

Bug, feature request, or proposal:

Bug

What is the expected behavior?

md-icon should be vertically centered relative to list item text

What is the current behavior?

md-icon is misaligned

What are the steps to reproduce?

md-nav-list
  md-list-item
    md-icon[md-list-avatar]
    p[md-line]

http://plnkr.co/edit/qAVB6mOYNf4p8yxtRSQX?p=preview
Screenshot

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

Devs shouldn't have to modify CSS to achieve what should be the default behaviour of this list

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

2.0.0-beta.1. Tested on Chrome 56.

Is there anything else we should know?

Commenting out the height: 40px line in devtools seemed to resolve the problem, but this may break alignment for multiline items

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions