Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(button): ensure icons are aligned vertically. #1736

Merged
merged 1 commit into from
Nov 11, 2016

Conversation

devversion
Copy link
Member

  • The icon buttons are never a perfect cirlce, because they can shrink (depending on siblings).

    In Material 1 we solved this by adding min-width/height, but having flex-shrink is more elegant here (it allows developers to easily overwrite height and width)

  • Sets the line-height for icons only to i and md-icon elements (as same as for fab buttons)

    Can be made more generic in the future, with another mixin.

Fixes #1093.

* The icon buttons are never a perfect cirlce, because they can shrink (depending on siblings).
   In Material 1 we solved this by adding `min-width/height`, but having flex-shrink is more approriated here (it allows developers to easily overwrite height / width)

* Sets the line-height for icons only to `i` and `md-icon` elements (as same as for fab buttons)

Fixes angular#1093.
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 5, 2016
@jelbourn
Copy link
Member

jelbourn commented Nov 8, 2016

R: @tinayuangao

@tinayuangao
Copy link
Contributor

LGTM

@jelbourn jelbourn added the action: merge The PR is ready for merge by the caretaker label Nov 10, 2016
@jelbourn jelbourn merged commit d3a50b3 into angular:master Nov 11, 2016
@devversion devversion deleted the fix/icon-button-alignment branch November 12, 2016 12:09
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

md-icon-button in md-toolbar has icon displaced
4 participants