diff --git a/src/material/card/card.scss b/src/material/card/card.scss index d6d05fb80be7..318f829dafd6 100644 --- a/src/material/card/card.scss +++ b/src/material/card/card.scss @@ -203,10 +203,23 @@ $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 { + &:not(.mat-card-actions-align-end) { + .mat-button, + .mat-raised-button, + .mat-stroked-button { + &:first-child { + margin-left: 0; + margin-right: 0; + } + } + } +} + +.mat-card-actions-align-end { .mat-button, .mat-raised-button, .mat-stroked-button { - &:first-child { + &:last-child { margin-left: 0; margin-right: 0; }