Skip to content

mat-card-flat SCSS class not working #11014

Closed
@odahcam

Description

@odahcam

Bug, feature request, or proposal:

bug

What is the expected behavior?

.mat-card-flat class to make a card look flatten.

What is the current behavior?

So many shadows.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material2-issue-ercan7?file=app/app.component.html

What is the use-case or motivation for changing an existing behavior?

The class is there and it's not working.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material >= 5 <= 6

Is there anything else we should know?

image

The class .mat-elevation-z works, that's because a rule in;
https://github.com/angular/material2/blob/21d004a4322df944539458281e1983965cfb6edd/src/lib/core/style/_elevation.scss#L151
...I think.

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions