Skip to content

Commit 399ed29

Browse files
crisbetojelbourn
authored andcommitted
fix(card): stroked buttons missing margin (#16576)
Fixes stroked buttons inside of card actions not having a margin. Fixes #16546.
1 parent 93e9415 commit 399ed29

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/material/card/card.scss

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ $mat-card-header-size: 40px !default;
8484
}
8585

8686
.mat-card-actions {
87-
.mat-button, .mat-raised-button {
87+
.mat-button,
88+
.mat-raised-button,
89+
.mat-stroked-button {
8890
margin: 0 8px;
8991
}
9092
}
@@ -200,10 +202,15 @@ $mat-card-header-size: 40px !default;
200202

201203
// actions panel should always be 8px from sides,
202204
// so the first button in the actions panel can't add its own margins
203-
.mat-card-actions .mat-button:first-child,
204-
.mat-card-actions .mat-raised-button:first-child {
205-
margin-left: 0;
206-
margin-right: 0;
205+
.mat-card-actions {
206+
.mat-button,
207+
.mat-raised-button,
208+
.mat-stroked-button {
209+
&:first-child {
210+
margin-left: 0;
211+
margin-right: 0;
212+
}
213+
}
207214
}
208215

209216
// should be 12px space between titles and subtitles generally

0 commit comments

Comments
 (0)