Skip to content

Commit 015458a

Browse files
jvgomgazz
authored andcommitted
feat: use div as default component (#48)
* Change Cell to use div BREAKING CHANGE: Anything relying on the Cell component rendering a `section` tag will need to be update to expect `div`s.
1 parent e90766a commit 015458a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Cell.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styled from "styled-components";
22
import PropTypes from "prop-types";
33

4-
const Cell = styled.section`
4+
const Cell = styled.div`
55
height: 100%;
66
min-width: 0;
77
grid-column-end: ${({ width = 1 }) => `span ${width}`};

lib/__tests__/__snapshots__/Cell.test.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ exports[`<Cell/> 'middle' prop vertically aligns contents 1`] = `
2323
justify-self: stretch;
2424
}
2525
26-
<section
26+
<div
2727
className="c0"
2828
/>
2929
`;
@@ -36,7 +36,7 @@ exports[`<Cell/> matches snapshot with default args 1`] = `
3636
grid-row-end: span 1;
3737
}
3838
39-
<section
39+
<div
4040
className="c0"
4141
/>
4242
`;

0 commit comments

Comments
 (0)