Skip to content

Commit 44e9d01

Browse files
committed
Revert "[nav] lock the overflow y when the nav items are rendered."
This reverts commit d00a03e.
1 parent d00a03e commit 44e9d01

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/components/Nav.js

-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react'
22
import { Link } from 'gatsby'
33
import styled from '@emotion/styled'
4-
import { Global, css } from '@emotion/core'
54
import { breakpoints, colors } from '../utils/variables'
65
import Hamburger from '../resources/hamburger.svg'
76
import Multiply from '../resources/multiply.svg'
@@ -159,13 +158,6 @@ class Nav extends React.Component {
159158
const { shouldRenderLogo } = this.props
160159
return (
161160
<StyledNav>
162-
<Global
163-
styles={css`
164-
html {
165-
overflow-y: ${this.state.isNavRendered ? 'hidden' : 'scroll'};
166-
}
167-
`}
168-
/>
169161
<nav className="nav" style={ this.state.isNavRendered ? { background: '#fff', height: '100vh' } : {} }>
170162
<div className="nav__header">
171163
{ shouldRenderLogo ?

0 commit comments

Comments
 (0)