Skip to content

Commit

Permalink
fix(material-experimental/mdc-card): action alignment not working (#2…
Browse files Browse the repository at this point in the history
…3742)

We were adding the `mat-mdc-card-actions-align-end` class, but we weren't using it which meant that `<mat-card-actions align="end">` didn't work.

(cherry picked from commit bfea409)
  • Loading branch information
crisbeto authored and andrewseguin committed Oct 19, 2021
1 parent 11e591b commit 2e747ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/material-experimental/mdc-card/card.scss
Expand Up @@ -143,3 +143,8 @@ $mat-card-default-padding: 16px !default;
.mat-mdc-card-content > :last-child:not(.mat-mdc-card-footer) {
margin-bottom: 0;
}

// Support for actions aligned to the end of the card.
.mat-mdc-card-actions-align-end {
justify-content: flex-end;
}

0 comments on commit 2e747ac

Please sign in to comment.