Skip to content

md-icon is not rendered correctly in md-button #1454

@M4R1KU

Description

@M4R1KU

Bug, feature request, or proposal:

Bug

What is the expected behavior?

The Icon in md-icon should be aligned horizontally centered when it is used in a md-raised-button.

What is the current behavior?

When I have a md-icon in a md-raised-button the icon is rendered at the top of the button and not in the center like the normal text is.

What are the steps to reproduce?

<button md-raised-button">Last<md-icon>navigate_before</md-icon></button>

image

Like you can see the icon is rendered very weird.

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

Angular: 2.0.1
Angular Material: 2.0.0-alpha.9-3
Angular-CLI: 1.0.0-beta.15

Tested in Chrome and Firefox on Ubuntu 16.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions