File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/material-experimental/mdc-table Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 54
54
theming .get-typography-config ($config-or-theme ));
55
55
@include mdc-helpers .mat-using-mdc-typography ($config ) {
56
56
@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
+ }
57
65
}
58
66
}
59
67
You can’t perform that action at this time.
0 commit comments