Skip to content

Commit

Permalink
Revert "[nav] lock the overflow y when the nav items are rendered."
Browse files Browse the repository at this point in the history
This reverts commit d00a03e.
  • Loading branch information
nisarhassan12 committed May 16, 2020
1 parent d00a03e commit 44e9d01
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/components/Nav.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import { Link } from 'gatsby'
import styled from '@emotion/styled'
import { Global, css } from '@emotion/core'
import { breakpoints, colors } from '../utils/variables'
import Hamburger from '../resources/hamburger.svg'
import Multiply from '../resources/multiply.svg'
Expand Down Expand Up @@ -159,13 +158,6 @@ class Nav extends React.Component {
const { shouldRenderLogo } = this.props
return (
<StyledNav>
<Global
styles={css`
html {
overflow-y: ${this.state.isNavRendered ? 'hidden' : 'scroll'};
}
`}
/>
<nav className="nav" style={ this.state.isNavRendered ? { background: '#fff', height: '100vh' } : {} }>
<div className="nav__header">
{ shouldRenderLogo ?
Expand Down

0 comments on commit 44e9d01

Please sign in to comment.