-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
mat-card-lg-image (mat-card-title-group) overlaps content in mat-card-content #10031
Comments
https://angular-jqxhux.stackblitz.io Link is not working :) |
The |
I guess I don't know how to work stackblitz. I don't know where I errored. I went to There I copied lines 1 - 19 as a starting point.
end up with <mat-card-title-group>
<div mat-card-avatar class="example-header-image"></div>
<mat-card-title>Shiba Inu</mat-card-title>
<mat-card-subtitle>Dog Breed</mat-card-subtitle>
<img mat-card-lg-image src="https://material.angular.io/assets/img/examples/shiba2.jpg" alt="Photo of a Shiba Inu">
</mat-card-title-group> that the "lg" image is overlapping the first line of mat-card-content text. I just did it again, and I have no confidence this works for others: |
Please see if this stackblitz link works -- and demonstrates the CSS problem with the mat-card-lg-image overlapping mat-card-content. |
@sumpton The easiest thing to do might be to add a "style='margin-bottom: auto'" to the first image? |
* Fixes that `mat-card-$breakpoint-image` images overlap the card content when placed inside of the title group. Fixes angular#10031
* Fixes that `mat-card-$breakpoint-image` images overlap the card content when placed inside of the title group. Fixes #10031
* Fixes that `mat-card-$breakpoint-image` images overlap the card content when placed inside of the title group. Fixes #10031
* Fixes that `mat-card-$breakpoint-image` images overlap the card content when placed inside of the title group. Fixes #10031
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. |
Bug, feature request, or proposal:
bug -- unless I am missing something
The large image mat-card-lg-image
in a mat-card-title-group overlaps the text below (mat-card-content).
What is the expected behavior?
The CSS should separate the image from the text in mat-card-content.
What is the current behavior?
The image overlaps the content in mat-card-content.
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
https://angular-jqxhux.stackblitz.io
What is the use-case or motivation for changing an existing behavior?
:)
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Those in the current StackBlitz linked from
https://material.angular.io/components/card/examples
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: