Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Images in md-card are being blown up to 100% width #7447

@jelbourn

Description

@jelbourn

Report from Googler on this line: https://github.com/angular/material/blob/master/src/components/card/card.scss#L63

This is causing images to suddenly blow out our layouts.... I'm not an expert, but it seems that this rule might be incorrect it's applying to all image tags that happen to NOT be within an md-card-content.

Seems like this rule is for "full bleed" images

context: #6273

We don't use md-card-content since our spec calls for 24px margins and we'd prefer to not use overrides.

Perhaps this could/should be a more semantically named rule rather than applying to all images? (e.g.

Reproduction: http://codepen.io/anon/pen/graaLZ

Metadata

Metadata

Assignees

Labels

- Breaking ChangeP0: criticalCritical issues that must be addressed immediately.g3: reportedThe issue was reported by an internal or external product team.has: Pull RequestA PR has been created to address this issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions