Skip to content

Conversation

@rameshworsht
Copy link
Contributor

Introduce more examples with actions, footer, image size, and subtitles.

Demo: https://stackblitz.com/edit/angular-ivy-zanf7t?file=src%2Fmain.ts

Close Issue: #22844

@google-cla
Copy link

google-cla bot commented Jul 26, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added the cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla label Jul 26, 2021
@rameshworsht
Copy link
Contributor Author

@googlebot I signed it!

@google-cla google-cla bot added cla: yes PR author has agreed to Google's Contributor License Agreement and removed cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla labels Jul 26, 2021
@rameshworsht rameshworsht force-pushed the docs/card/examples-22844 branch 2 times, most recently from 3371667 to e87c6ac Compare July 27, 2021 00:10
<button mat-button>SHARE</button>
</mat-card-actions>
<mat-card-footer>
<!-- <mat-progress-bar mode="indeterminate"></mat-progress-bar> -->
Copy link
Member

Choose a reason for hiding this comment

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

Should this be removed?

<p>This card indeterminates progress bar and divider.</p>
<p>{{ longText }}</p>
</mat-card-content>
<!-- <mat-divider [inset]="true"></mat-divider> -->
Copy link
Member

Choose a reason for hiding this comment

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

Should this be removed?

<mat-card-subtitle>Dog Breed</mat-card-subtitle>
<mat-card-title>Shiba Inu</mat-card-title>
<mat-card-content>
<p>This card indeterminates progress bar and divider.</p>
Copy link
Member

Choose a reason for hiding this comment

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

This says that the card has a progress bar and a divider, but they're both commented out.

@rameshworsht rameshworsht force-pushed the docs/card/examples-22844 branch from 2704c94 to b274c19 Compare August 1, 2021 19:15
@rameshworsht
Copy link
Contributor Author

@crisbeto I have added the divider and progress-bar for the footer example. Thank you for reviewing my pr. 🙏🏼

<mat-card-subtitle>Dog Breed</mat-card-subtitle>
<mat-card-title>Shiba Inu</mat-card-title>
<mat-card-content>
<p>This card has divider and indeterminates progress as footer</p>
Copy link
Member

Choose a reason for hiding this comment

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

indeterminates -> indeterminate

<p>This card has divider and indeterminates progress as footer</p>
<p>{{ longText }}</p>
</mat-card-content>
<mat-divider [inset]="true"></mat-divider>
Copy link
Member

Choose a reason for hiding this comment

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

[inset]="true" can be simplified to inset.

@@ -0,0 +1,49 @@
<!-- Cards with media area -->
<h2>Cards with media area</h2>
Copy link
Member

Choose a reason for hiding this comment

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

This header should be removed since the docs add a header separately.

{{longText}}
</mat-card-content>
</mat-card>
<br/>
Copy link
Member

Choose a reason for hiding this comment

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

The cards should have a margin-bottom instead of using br for spacing.

remove br and add margin and clean up
@rameshworsht rameshworsht force-pushed the docs/card/examples-22844 branch from 7213c05 to d9e6c89 Compare August 2, 2021 17:16
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

@crisbeto crisbeto added docs This issue is related to documentation merge safe 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 Aug 5, 2021
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Aug 30, 2021
@mmalerba mmalerba merged commit dc9a905 into angular:master Aug 31, 2021
mmalerba pushed a commit that referenced this pull request Aug 31, 2021
* docs(material/card): add more examples

Introduce more examples with actions, footer, image size, and subtitles.

* docs(material/card): add the divider and progress bar for footer

* docs(material/card): incorporate feedback
remove br and add margin and clean up

(cherry picked from commit dc9a905)
@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 Oct 1, 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 docs This issue is related to documentation 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.

3 participants