Skip to content

Commit 5bc97ec

Browse files
crisbetojelbourn
authored andcommitted
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.
1 parent 9022a7a commit 5bc97ec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/list/list.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@ $mat-dense-list-icon-size: 20px;
110110
display: block;
111111
box-sizing: border-box;
112112
padding: $mat-list-side-padding;
113-
margin: 0;
113+
114+
// This needs slightly more specificity, because it
115+
// can be overwritten by the typography styles.
116+
.mat-list & {
117+
margin: 0;
118+
}
114119
}
115120

116121
// This mixin adjusts the heights and padding based on whether the list is in dense mode.

0 commit comments

Comments
 (0)