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(material/card): not clearing margin on last button in end alignment #20040

Merged
merged 1 commit into from
Mar 7, 2021

Conversation

crisbeto
Copy link
Member

We have some styles that clear the margin from the first button, but we didn't apply the same to the last button if the card actions are aligned towards the end.

Fixes #20024.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Jul 19, 2020
@crisbeto crisbeto requested a review from jelbourn as a code owner July 19, 2020 11:23
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jul 19, 2020
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

LGTM

@mmalerba mmalerba added lgtm action: merge The PR is ready for merge by the caretaker labels Jul 20, 2020
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

@wagnermaciel
Copy link
Contributor

@crisbeto Looks like this breaks ~20 targets inside Google, mostly screenshot tests. Looking at the diffs, some of them are a bit off. Probably not worth the effort to update everything for now

@crisbeto
Copy link
Member Author

The screenshot failures are expected, because it removes some margin that wasn't supposed to be there in the first place.

@mmalerba mmalerba removed the lgtm label Jul 31, 2020
@svenank3r
Copy link

Not sure if I can comment on a pull request, but it seems like .mat-flat-button, is not taken into consideration for the margins. Is this on purpose?

@crisbeto crisbeto changed the title fix(card): not clearing margin on last button in end alignment fix(material/card): not clearing margin on last button in end alignment Jan 8, 2021
We have some styles that clear the margin from the first button, but we didn't apply the
same to the last button if the card actions are aligned towards the end.

Fixes angular#20024.
@annieyw annieyw merged commit 619d591 into angular:master Mar 7, 2021
annieyw pushed a commit that referenced this pull request Mar 7, 2021
…nt (#20040)

We have some styles that clear the margin from the first button, but we didn't apply the
same to the last button if the card actions are aligned towards the end.

Fixes #20024.

(cherry picked from commit 619d591)
@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 Apr 7, 2021
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 P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(mat-card): buttons in mat-card-actions do not consider its align attribute
7 participants