mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(list): subheader margin being overwritten by typography (#5652)
Fixes the `.mat-subheader` margin being overwritten by the `.mat-typography` due to lower specificity. Fixes #5639.
This commit is contained in:
committed by
Jeremy Elbourn
parent
9022a7a652
commit
5bc97ec894
@@ -110,7 +110,12 @@ $mat-dense-list-icon-size: 20px;
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
padding: $mat-list-side-padding;
|
||||
margin: 0;
|
||||
|
||||
// This needs slightly more specificity, because it
|
||||
// can be overwritten by the typography styles.
|
||||
.mat-list & {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// This mixin adjusts the heights and padding based on whether the list is in dense mode.
|
||||
|
||||
Reference in New Issue
Block a user