Skip to content

Commit 73122da

Browse files
author
Kylie Stewart
authored
Use th for TableHeader (#744)
1 parent 1b53860 commit 73122da

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/__snapshots__/table-header-item.test.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`<TableHeaderItem /> should render correctly 1`] = `
44
<TableHeaderItem>
5-
<Styled(td)
5+
<Styled(th)
66
styles={
77
Array [
88
Object {
@@ -14,11 +14,11 @@ exports[`<TableHeaderItem /> should render correctly 1`] = `
1414
]
1515
}
1616
>
17-
<td
17+
<th
1818
className="css-4x5e e51bxha0"
1919
>
2020
Header Text
21-
</td>
22-
</Styled(td)>
21+
</th>
22+
</Styled(th)>
2323
</TableHeaderItem>
2424
`;

src/components/table-header-item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33
import { getStyles } from '../utils/base';
44
import styled from 'react-emotion';
55

6-
const StyledTableHeaderItem = styled.td(props => props.styles);
6+
const StyledTableHeaderItem = styled.th(props => props.styles);
77

88
export default class TableHeaderItem extends Component {
99
render() {

0 commit comments

Comments
 (0)