Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(card): prevent content from overlapping footer #5583

Merged
merged 1 commit into from
Jul 14, 2017

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jul 7, 2017

  • Prevents content from overlapping the md-card-footer component by making the footer position: static.
  • Uses content projection to ensure that the footer will always be at the bottom of a card.

Fixes #5486.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jul 7, 2017
min-height: 5px;
bottom: 0;
left: 0;
$margin: -$mat-card-default-padding;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add comments that explain the negative margins? I find those to usually be hard to grok when coming back to the styles later.

* Prevents content from overlapping the `md-card-footer` component by making the footer `position: static`.
* Uses content projection to ensure that the footer will always be at the bottom of a card.

Fixes angular#5486.
@crisbeto crisbeto force-pushed the 5486/card-footer-positioning branch from bdd9c14 to 46e5c23 Compare July 12, 2017 17:16
@crisbeto
Copy link
Member Author

Addressed the feedback @jelbourn.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Jul 12, 2017
@jelbourn jelbourn merged commit a394418 into angular:master Jul 14, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

md-card-actions button overlaps md-card-footer content
4 participants