Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/demo-app/button/button-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,16 @@
<a href="http://www.google.com" md-raised-button color="primary">SEARCH</a>
<button md-raised-button>DANCE</button>
</section>
<section>
<button md-raised-button>More<md-icon>more_vert</md-icon></button>
<button md-raised-button>Check<md-icon>check</md-icon></button>
<button md-raised-button>Check<md-icon class="md-24">favorite</md-icon></button>
<button md-raised-button>Last<md-icon>navigate_before</md-icon></button>
</section>
<section>
<button md-button>More<md-icon>more_vert</md-icon></button>
<button md-button>Check<md-icon>check</md-icon></button>
<button md-button>Check<md-icon class="md-24">favorite</md-icon></button>
<button md-button>Last<md-icon>navigate_before</md-icon></button>
</section>
</div>
7 changes: 7 additions & 0 deletions src/lib/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@
}
}

// The text and icon should be vertical aligned inside a button
[md-button], [md-raised-button] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment that explains what this style is for / why it was added?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

.md-button-wrapper > * {
vertical-align: middle;
}
}

// The ripple container should match the bounds of the entire button.
.md-button-ripple {
position: absolute;
Expand Down