Skip to content

Commit 369abb9

Browse files
committed
fix(card): flat card selector not working
Fixes the `.mat-flat-card` selector not working due to its specificity being too low. Fixes #11014.
1 parent 2e54f13 commit 369abb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/card/card.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ $mat-card-header-size: 40px !default;
3737
}
3838
}
3939

40-
.mat-card-flat {
40+
// Needs extra specificity to be able to override the elevation selectors.
41+
.mat-card.mat-card-flat {
4142
box-shadow: none;
4243
}
4344

0 commit comments

Comments
 (0)