Skip to content

Commit

Permalink
Make menu items buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
schiehll committed May 24, 2019
1 parent b4531ef commit 886f156
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/nav/styles.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import styled, { css } from 'styled-components'

export const Nav = styled.ul`
export const Nav = styled.div`
${({ theme: { spacing } }) => css`
list-style: none;
margin: ${spacing.huge * 2}px 0 0 0;
padding: 0;
`}
`

export const Item = styled.li`
export const Item = styled.button`
${({ theme: { spacing, colors, radius }, active }) => css`
position: relative;
padding: ${spacing.small}px 0 ${spacing.small}px ${spacing.small}px;
Expand All @@ -17,6 +16,10 @@ export const Item = styled.li`
align-items: center;
opacity: 0.8;
text-transform: capitalize;
border: none;
background: none;
text-align: left;
width: 100%;
${active &&
`
Expand Down

0 comments on commit 886f156

Please sign in to comment.