Skip to content

Commit

Permalink
fix(list): subheader margin being overwritten by typography
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 angular#5639.
  • Loading branch information
crisbeto committed Jul 10, 2017
1 parent 557b31b commit cc4533b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/list/list.scss
Original file line number Diff line number Diff line change
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 cc4533b

Please sign in to comment.