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.
  • Loading branch information
crisbeto committed Oct 19, 2021
1 parent 3cd505f commit bfea409
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/material-experimental/mdc-card/card.scss
Original file line number Diff line number Diff line change
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 bfea409

Please sign in to comment.