Skip to content

Commit c3abfe6

Browse files
fix(components): add missing font-styles to table fixed row headers (#431)
1 parent ff7fced commit c3abfe6

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/components/Table/__snapshots__/Table.spec.js.snap

+8
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ tbody .circuit-11:last-child td {
118118
vertical-align: middle;
119119
white-space: nowrap;
120120
display: none;
121+
font-size: 13px;
122+
font-weight: 700;
121123
padding: 8px 24px;
122124
}
123125
@@ -523,6 +525,8 @@ tbody .circuit-11:last-child td {
523525
vertical-align: middle;
524526
white-space: nowrap;
525527
display: none;
528+
font-size: 13px;
529+
font-weight: 700;
526530
padding: 8px 24px;
527531
}
528532
@@ -904,6 +908,8 @@ tbody .circuit-11:last-child td {
904908
vertical-align: middle;
905909
white-space: nowrap;
906910
display: none;
911+
font-size: 13px;
912+
font-weight: 700;
907913
padding: 8px 24px;
908914
}
909915
@@ -1281,6 +1287,8 @@ tbody .circuit-11:last-child td {
12811287
vertical-align: middle;
12821288
white-space: nowrap;
12831289
display: none;
1290+
font-size: 13px;
1291+
font-weight: 700;
12841292
padding: 8px 24px;
12851293
}
12861294

src/components/Table/components/TableCell/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ const presentationStyles = ({ theme, role, header }) =>
3838
label: table-cell--presentation;
3939
display: none;
4040
41-
${header && `padding: ${theme.spacings.byte} ${theme.spacings.giga}`};
41+
${header &&
42+
css`
43+
font-size: ${theme.typography.text.kilo.fontSize};
44+
font-weight: ${theme.fontWeight.bold};
45+
padding: ${theme.spacings.byte} ${theme.spacings.giga};
46+
`}
4247
4348
${theme.mq.untilMega} {
4449
display: table-cell;

0 commit comments

Comments
 (0)