Skip to content

Commit ac6f153

Browse files
authored
Change duplicate body tag to a div (graphql#920)
1 parent ab8c409 commit ac6f153

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/components/Layout.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ import Footer from './Footer'
66
import SEO from './Seo'
77

88
const Layout = ( { children, title, section, className, noSearch } ) => (
9-
// Temporarily added (need to find a way around this)
10-
<body className={className}>
9+
<div className={className}>
1110
<SEO title={title} />
1211
<Header section={section} noSearch={noSearch} />
1312

1413
{children}
1514

1615
<Footer />
17-
</body>
16+
</div>
1817
)
1918

2019
Layout.propTypes = {

src/css/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import "variables.less";
22

33
// Index page uses a fixed header with an overlay
4-
body.index {
4+
.index {
55
background: #f5f6f8;
66
@media screen and (min-width: 1020px) {
77
margin-top: 50px;

0 commit comments

Comments
 (0)