Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as ReachUI from '@reach/menu-button'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import React from 'react'
import { ErrorMsg, Label } from './TextInput'
import SelectorCaret from '../icons/SelectorCaret'
const MenuButton = styled(ReachUI.MenuButton)`
background-color: ${p => p.theme.colors.translucentPrimary};
color: ${p => p.theme.colors.light};
font-size: 1.3rem;
font-weight: 600;
letter-spacing: 0.5px;
text-shadow: ${p => p.theme.textShadow};
padding: 0;
border: none;
display: block;
height: 4.8rem;
text-align: left;
width: 100%;
line-height: 4rem;
margin-top: 0.8rem;
cursor: pointer;
display: flex;
z-index: 4;
width: 168px;
}
`
const Title = styled.div`
color: ${({ theme }) => theme.colors.light};
font-size: 0.9rem;
letter-spacing: 1.6px;
font-weight: 600;
opacity: 0.5;
margin-bottom: 0.8rem;
margin-left: 0.6rem;
`
const MenuButton = styled(ReachUI.MenuButton)`
background-color: ${({ theme }) => theme.colors.lightShade};
font: inherit;
color: ${({ theme }) => theme.colors.light};
border-radius: 1.2rem;
border: none;
text-align: left;
display: block;
width: 100%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 0.4rem 1rem 0.8rem;
transition: padding 0.3s;
&:focus,