Skip to content

Commit 90a623f

Browse files
authored
Ensure text in Table components use colors from the theme (#1917)
1 parent c4ea665 commit 90a623f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

packages/components/src/Table/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ export const Table = styled.table
5252
${space}
5353
${layout}
5454
${border}
55-
5655
border-collapse: collapse;
56+
color: ${({ theme: { colors } }) => colors.text5};
5757
`

packages/components/src/Table/TableCell/TableHeaderCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface TableHeaderCellProps
3535
export const TableHeaderCell = styled.th
3636
.withConfig({ shouldForwardProp })
3737
.attrs<TableHeaderCellProps>(
38-
({ color = 'ui4', fontSize = 'xsmall', fontWeight = 'semiBold' }) => ({
38+
({ color = 'text2', fontSize = 'xsmall', fontWeight = 'semiBold' }) => ({
3939
color,
4040
fontSize,
4141
fontWeight,

packages/components/src/Table/TableCell/__snapshots__/TableHeaderCell.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`A <TableHeaderCell> should render 1`] = `
44
.c0 {
55
font-family: Roboto,'Noto Sans JP','Noto Sans CJK KR','Noto Sans Arabic UI','Noto Sans Devanagari UI','Noto Sans Hebrew','Noto Sans Thai UI',Helvetica,Arial,sans-serif;
66
padding: 0.5rem 0;
7-
color: #939BA5;
7+
color: #707781;
88
font-size: 0.75rem;
99
font-weight: 600;
1010
}

packages/components/src/Table/__snapshots__/Table.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ exports[`A Table should render 1`] = `
55
font-family: Roboto,'Noto Sans JP','Noto Sans CJK KR','Noto Sans Arabic UI','Noto Sans Devanagari UI','Noto Sans Hebrew','Noto Sans Thai UI',Helvetica,Arial,sans-serif;
66
width: 100%;
77
border-collapse: collapse;
8+
color: #262D33;
89
}
910
1011
<table

0 commit comments

Comments
 (0)