Skip to content

Commit

Permalink
Refine Side Menu Invocation
Browse files Browse the repository at this point in the history
- Fix overlay catching all clicks, even when not active.
  • Loading branch information
austinkettner committed May 13, 2018
1 parent 1845335 commit 6365c87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/public/menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styles from './menu.scss';

const Menu = props => (
<div id="menu" className={props.active ? styles.active : ''}>
<div className={styles.overlay} onClick={props.toggle}></div>
<div className={styles.overlay} onClick={props.toggle} />
<div className={styles.menu}>
<div className={styles.background}></div>
<div className={styles.content}>
Expand Down
2 changes: 2 additions & 0 deletions src/components/public/menu/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

.overlay {
position: fixed;
display: none;
top: 0;
left: 0;
right: 0;
Expand Down Expand Up @@ -101,5 +102,6 @@

.overlay {
opacity: 1;
display: inherit;
}
}

0 comments on commit 6365c87

Please sign in to comment.