Skip to content

Commit 3fc0406

Browse files
committed
fix(material-experimental/mdc-table): apply 500 font weight to headers
1 parent 5e771a7 commit 3fc0406

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/material-experimental/mdc-table/_table-theme.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@
5454
theming.get-typography-config($config-or-theme));
5555
@include mdc-helpers.mat-using-mdc-typography($config) {
5656
@include mdc-data-table.core-styles($query: mdc-helpers.$mat-typography-styles-query);
57+
58+
// MDC's header cell typography uses the `subtitle-2` config value. Due to legacy reasons, this value is mapped
59+
// from Angular Material's `subheading-1` config value. This is not a perfect mapping because the Material spec
60+
// shows the header having `font-weight: 500` instead of `subheading-1`'s default weight of 400. This override
61+
// makes sure that the heading has the expected weight of 500.
62+
.mat-mdc-header-cell {
63+
font-weight: 500;
64+
}
5765
}
5866
}
5967

0 commit comments

Comments
 (0)