Skip to content

Commit 54218d6

Browse files
authored
fix(material-experimental/mdc-table): apply 500 font weight to headers (#23169)
1 parent 052f1d3 commit 54218d6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@
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,
59+
// this value is mapped from Angular Material's `subheading-1` config value. This is not
60+
// a perfect mapping because the Material spec shows the header having `font-weight: 500`
61+
// instead of `subheading-1`'s default weight of 400. This override makes sure that the
62+
// heading has the expected weight of 500.
63+
.mat-mdc-header-cell {
64+
font-weight: 500;
65+
}
5766
}
5867
}
5968

0 commit comments

Comments
 (0)