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
5 changes: 5 additions & 0 deletions src/demo-app/button/button-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
<button md-fab>
<md-icon class="md-24">check</md-icon>
</button>
<button md-fab>Btn</button>
<a md-fab routerLink=".">Link</a>
<a md-fab routerLink="."><md-icon class="md-24">check</md-icon></a>
<button md-mini-fab>
<md-icon class="md-24">check</md-icon>
</button>
<button md-mini-fab>Btn</button>
<a md-mini-fab routerLink=".">Link</a>
</section>

<section>
Expand Down
3 changes: 2 additions & 1 deletion src/lib/button/_button-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ $mat-mini-fab-padding: 8px !default;
@include mat-elevation(12);
}

i, .mat-icon {
.mat-button-wrapper {
padding: $padding 0;
display: inline-block;
line-height: $mat-icon-button-line-height;
}
}
2 changes: 1 addition & 1 deletion src/lib/button/_button-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
}

@mixin mat-button-typography($config) {
.mat-button, .mat-raised-button, .mat-icon-button {
.mat-button, .mat-raised-button, .mat-icon-button, .mat-fab, .mat-mini-fab {
Copy link
Member

Choose a reason for hiding this comment

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

@crisbeto did you have a reason for omitting the fab buttons here?

Copy link
Member

Choose a reason for hiding this comment

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

I don't remember, but it was probably because the fabs aren't really meant to be used with text.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@crisbeto Is there any reason why not to?

Copy link
Member

Choose a reason for hiding this comment

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

The spec doesn't really have fabs with text, if I remember correctly, but it shouldn't be an issue to keep it anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@crisbeto We good to merge then?

font: {
family: mat-font-family($config);
size: mat-font-size($config, button);
Expand Down