Skip to content

Commit

Permalink
fix(list): subheader margin being overwritten by typography (#5652)
Browse files Browse the repository at this point in the history
Fixes the `.mat-subheader` margin being overwritten by the `.mat-typography` due to lower specificity.

Fixes #5639.
  • Loading branch information
crisbeto authored and jelbourn committed Jul 11, 2017
1 parent 9022a7a commit 5bc97ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/list/list.scss
Expand Up @@ -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.
Expand Down

0 comments on commit 5bc97ec

Please sign in to comment.