-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs(material/card): add more examples #23247
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
docs(material/card): add more examples #23247
Conversation
|
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 What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
|
@googlebot I signed it! |
3371667 to
e87c6ac
Compare
| <button mat-button>SHARE</button> | ||
| </mat-card-actions> | ||
| <mat-card-footer> | ||
| <!-- <mat-progress-bar mode="indeterminate"></mat-progress-bar> --> |
There was a problem hiding this comment.
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> --> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
Introduce more examples with actions, footer, image size, and subtitles.
2704c94 to
b274c19
Compare
|
@crisbeto I have added the |
| <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> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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> | |||
There was a problem hiding this comment.
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/> |
There was a problem hiding this comment.
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
7213c05 to
d9e6c89
Compare
crisbeto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* 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)
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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