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:
Kristiyan Kostadinov
2017-07-11 18:21:55 +02:00
committed by Jeremy Elbourn
parent 9022a7a652
commit 5bc97ec894
+6 -1
View File
@@ -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.