Skip to content

Feature: md-icon should be centered inside button[md-icon-button] when it's size is reduced. #1426

@ghost

Description

Bug, feature request, or proposal:

Feature

What is the expected behavior?

<md-icon></md-icon> should be centered inside <button md-icon-button></button> when it's size is reduced.

What is the current behavior?

<md-icon></md-icon> isn't centered inside <button md-icon-button></button> when the font-size is modified.

What are the steps to reproduce?

template

<button md-icon-button>
    <md-icon>remove</md-icon>
</button>

css

md-icon {
  font-size: 16px;
}

css workaround

md-icon {
  margin-top: 6px;
  font-size: 16px;
}

pic
image

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

Inside other element, icons aren't aligned with the text because of this behavior

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

ng-cli beta.16 generated project
angular material alpha9-3

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