Skip to content

Commit

Permalink
Merge 82816f0 into 98f10c6
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilome committed Jan 29, 2019
2 parents 98f10c6 + 82816f0 commit ecc8c50
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ Cart [
</h2>
</div>
<nav>
<button type="button" className="nav-mobile small transparent">
☰ menu
</button>
<ul>{navContent()}</ul>
</nav>
</header>
Expand Down
5 changes: 5 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ button.small {
padding: 8px 12px;
}

button.transparent {
background-color: transparent;
color: #fff;
}

button.danger {
background: #b82e33;
}
Expand Down
6 changes: 6 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@
</head>
<body>
<div id="app"></div>
<script>
setTimeout(() => {
document.querySelector('.nav-mobile').onclick = () =>
document.querySelector('nav ul').classList.toggle('open');
}, 500);
</script>
</body>
</html>
12 changes: 12 additions & 0 deletions src/tests/components/__snapshots__/App.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ exports[`App component should render app correctly 1`] = `
</h2>
</div>
<nav>
<button
className="nav-mobile small transparent"
type="button"
>
☰ menu
</button>
<ul>
<li>
<Link
Expand Down Expand Up @@ -287,6 +293,12 @@ exports[`App component should render app correctly for authenticated customers 1
</h2>
</div>
<nav>
<button
className="nav-mobile small transparent"
type="button"
>
☰ menu
</button>
<ul>
<li>
<Link
Expand Down

0 comments on commit ecc8c50

Please sign in to comment.