Skip to content

Commit

Permalink
Install "body-scroll-lock" for Header slide menu
Browse files Browse the repository at this point in the history
The drop down of the navigation link slide menu will start right below
the header and take up the available height and width to cover the full
screen. The added package's purpose provides methods to remove all
scroll listeners from the underlying content (body) as soon as the
animation starts.
This prevents users from scrolling the content below the menu when the
menu itself overflows the Y-axis and shows a scroll bar.

Associated epics: GH-63, GH-2
GH-64
  • Loading branch information
arcticicestudio committed Dec 12, 2018
1 parent db29be4 commit 89c016c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"webpack-bundle-analyzer": "3.0.3"
},
"dependencies": {
"body-scroll-lock": "2.6.1",
"gatsby": "2.0.55",
"gatsby-plugin-canonical-urls": "2.0.7",
"gatsby-plugin-catch-links": "2.0.8",
Expand Down

0 comments on commit 89c016c

Please sign in to comment.