diff --git a/src/lib/list/_list-theme.scss b/src/lib/list/_list-theme.scss index 2a064b4a9bdc..2355a23d5c80 100644 --- a/src/lib/list/_list-theme.scss +++ b/src/lib/list/_list-theme.scss @@ -46,7 +46,9 @@ } .mat-subheader { - @include mat-typography-level-to-styles($config, body-2); + font-family: mat-font-family($config, body-2); + font-size: mat-font-size($config, body-2); + font-weight: mat-font-weight($config, body-2); } } @@ -58,7 +60,9 @@ } .mat-subheader { - font: mat-font-weight($config, body-2) mat-font-size($config, caption) $font-family; + font-family: $font-family; + font-size: mat-font-size($config, caption); + font-weight: mat-font-weight($config, body-2); } } } diff --git a/src/lib/list/list.scss b/src/lib/list/list.scss index aee5121afba1..7f91e6596895 100644 --- a/src/lib/list/list.scss +++ b/src/lib/list/list.scss @@ -121,6 +121,7 @@ $mat-dense-list-icon-size: 20px; // This mixin adjusts the heights and padding based on whether the list is in dense mode. @mixin mat-subheader-spacing($top-padding, $base-height) { height: $base-height; + line-height: $base-height - $mat-list-side-padding * 2; &:first-child { margin-top: -$top-padding;