mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(card): flat card selector not working (#11028)
Fixes the `.mat-flat-card` selector not working due to its specificity being too low. Fixes #11014.
This commit is contained in:
committed by
Andrew Seguin
parent
e7b5bd4c7c
commit
b67813ef83
@@ -32,15 +32,16 @@ $mat-card-header-size: 40px !default;
|
||||
}
|
||||
}
|
||||
|
||||
// Needs extra specificity to be able to override the elevation selectors.
|
||||
&.mat-card-flat {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@include cdk-high-contrast {
|
||||
outline: solid 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.mat-card-flat {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
// base styles for each card section preset (mat-card-content, etc)
|
||||
%mat-card-section-base {
|
||||
display: block;
|
||||
|
||||
Reference in New Issue
Block a user