Skip to content

Commit

Permalink
fix(card): stroked buttons missing margin (angular#16576)
Browse files Browse the repository at this point in the history
Fixes stroked buttons inside of card actions not having a margin.

Fixes angular#16546.
  • Loading branch information
crisbeto authored and mmalerba committed Aug 27, 2019
1 parent 8307ba7 commit 459eacf
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/material/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ $mat-card-header-size: 40px !default;
}

.mat-card-actions {
.mat-button, .mat-raised-button {
.mat-button,
.mat-raised-button,
.mat-stroked-button {
margin: 0 8px;
}
}
Expand Down Expand Up @@ -200,10 +202,15 @@ $mat-card-header-size: 40px !default;

// actions panel should always be 8px from sides,
// so the first button in the actions panel can't add its own margins
.mat-card-actions .mat-button:first-child,
.mat-card-actions .mat-raised-button:first-child {
margin-left: 0;
margin-right: 0;
.mat-card-actions {
.mat-button,
.mat-raised-button,
.mat-stroked-button {
&:first-child {
margin-left: 0;
margin-right: 0;
}
}
}

// should be 12px space between titles and subtitles generally
Expand Down

0 comments on commit 459eacf

Please sign in to comment.