Skip to content

mat-card-footer not sticking to the bottom on cards with externally extended height #11094

Open
@raidenfreeman

Description

Bug, feature request, or proposal:

Does not anchor to bottom of card properly, when the card's height is set externally.

What is the expected behavior?

The footer should always be at the bottom, high enough to contain all the height of its contents.

What is the current behavior?

The footer is placed under the last element and does not stick to the bottom of the parent element.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-batbcz

  1. Get the card example.
  2. Swap the buttons from to
  3. Set a greater height than necessary for the card (could be a flex container expanding the card, but in the example it's set inline)

What is the use-case or motivation for changing an existing behavior?

The footer doesn't do what it claims.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

At least chrome 66 , Angular Material v 5.2.5

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/cardtarget: majorThis PR is targeted for the next major release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions